解决错误Algorithm constraints check failed on disabled algorithm: secp256k1

24 篇文章 0 订阅

最近在用FISCO BCOS搭建私链来做项目,本地连我们自己搭建的测试环境FISCO BCOS时,报了些莫名其妙的错,连自己电脑搭建的一点也没问题,证书也都是按环境拷贝的;

关键错误信息如下:

Caused by: sun.security.validator.ValidatorException: PKIX path validation failed: java.security.cert.CertPathValidatorException: Algorithm constraints check failed on disabled algorithm: secp256k1

Caused by: javax.net.ssl.SSLHandshakeException: General OpenSslEngine problem

Error: try to connect nodes with both ecdsa and sm context failed

2022-07-13 16:55:46.352|ERROR-[]-[====> init channel network error, org.fisco.bcos.sdk.network.NetworkException:

TRACE INFORMATION:
STEP1: try to connect nodes with ecdsa context…
STEP1-1: Load certificates for ecdsa context success…
STEP1 Result: try to connect nodes with ecdsa context failed. reason:
Failed to connect to all the nodes!
ssl handshake failed:/172.16.171.137:20200
reason: General OpenSslEngine problem. Please make sure the certificate are correctly configured and copied.

刚开始以为是jar包冲突导致的,换了几个关键包的版本,都没起作用

运行环境如下图
在这里插入图片描述

经过尝试,最终得到2个解决方法

1.用高版本jdk,我一直用的jdk8,换成jdk11后,启动成功,问题解决;

2.修改jdk8的java.security文件,注释掉jdk.disabled.namedCurves,文件目录为jdk1.8.0/jre/lib/security,启动成功,问题解决;

在这里插入图片描述

  • 1
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 2
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

蜗牛6662035

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值