解决方案: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 增强了安全验证

 解决办法:

打开  .jdkjrelibsecurityjava.security

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

自动化测试交流群:617352502
原文地址:https://www.cnblogs.com/vincent-li666/p/14668232.html