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请求即可。