解决方案:java.security.cert.CertificateException: Certificates does not conform to algorithm constraints

JAVA 版本1.8

当使用JMeter或者HttpClient发送HTTPS请求试,可能出现如下报错:

javax.net.ssl.SSLHandshakeException: java.security.cert.CertificateException: Certificates does not conform to algorithm constraints

Caused by: java.security.cert.CertificateException: Certificates does not conform to algorithm constraints

 

 

经查,原因为jdk1.8 增强了安全验证

 

 

 解决办法:

打开  .\jdk\jre\lib\security\java.security

搜索 jdk.certpath.disabledAlgorithms,在该配置前加 #, 保存后,重启java,再次发送https请求即可。

 

posted on 2021-04-16 18:07  Vincent.李  阅读(1861)  评论(0)    收藏  举报

导航