且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

javax.net.ssl.SSLPeerUnverifiedException:使用 JMeter 进行负载测试时对等方未通过身份验证

更新时间:2022-03-04 21:23:13

在您的最后一条评论之后,我设法重现了证书与您的主机不匹配以及与您的主机匹配的证书的问题.

After your last comment, I managed to reproduce issue with certificate not matching your host AND with the one matching your host.

您似乎正面临 Java 6 中的错误.实际上,我使用 JMeter 2.7 重现了 JDK6 的问题,但没有重现 JDK7 的问题.

It seems you are facing a bug in Java 6. Indeed I reproduce issue with JDK6 but not in JDK7 with JMeter 2.7.

为了记录这个,我在这里打开了错误:

To record this I opened bug here:

这里和 Oleg 给了我关于 JDK7 的提示:

And here and Oleg gave me the hint about JDK7 :

进一步分析您的配置,它可能来自您的自定义 tomcat7 配置:

Analysing further your configuration it might be coming from your custom tomcat7 config:

SSLCipherSuite="ECDHE-RSA-AES128-SHA256:AES128-GCM-SHA256:RC4:HIGH:!MD5:!aNULL:!EDH"
SSLHonorCipherOrder="true"

也许您可以尝试进行更改,但无论如何它都适用于 JDK7,因此您有自己的解决方案.

Maybe you could try a change, but anyway it works with JDK7 so you have your solution.

非常感谢您提出这个公开可用的 URL 来测试问题.

Thanks very much for proposing this publicly available URL to test issue.

谢谢