简体   繁体   English

Jmeter4 中的握手失败

[英]handshake_failure in Jmeter4

Tried many ways, still got handshake_failure in JMeter.尝试了很多方法,仍然在JMeter中出现handshake_failure

  1. Get cer file from Chrome with different type cer and p7b(used OpenSSL to read out 4 parts certificate and save in 4 pem files)使用不同类型的 cer 和 p7b 从 Chrome 获取 cer 文件(使用 OpenSSL 读取 4 部分证书并保存在 4 个 pem 文件中)
  2. Import in Keystore导入密钥库
  3. Set SSL manager in Jmeter在 Jmeter 中设置 SSL 管理器

error still show handshake_failure错误仍然显示handshake_failure

If you run your JMeter test in command-line non-GUI mode the SSL Manager will not work, you will need to set javax.net.ssl.keyStore and javax.net.ssl.keyStorePassword system properties , see How to Set Your JMeter Load Test to Use Client Side Certificates article for more information.如果您在命令行非 GUI 模式下运行 JMeter 测试,则 SSL 管理器将无法工作,您需要设置javax.net.ssl.keyStorejavax.net.ssl.keyStorePassword 系统属性,请参阅如何设置 JMeter负载测试以使用客户端证书文章了解更多信息。

Also "from Chrome" you're getting server certificate , for two-way SSL handshake you need to get the client certificate .同样“来自 Chrome”,您将获得服务器证书,对于双向 SSL 握手,您需要获得客户端证书

If this doesn't help, handshake failure may have different causes, for example:如果这没有帮助,握手失败可能有不同的原因,例如:

  1. Incorrect certificate, ie you're sending certificates in wrong order不正确的证书,即您以错误的顺序发送证书
  2. You're using incompatible SSL version, check https.default.protocol property您使用的是不兼容的 SSL 版本,请检查https.default.protocol属性
  3. You're using incompatible SSL protocol, check https.socket.protocols property您使用的是不兼容的 SSL 协议,请检查https.socket.protocols属性
  4. You're using incompatible SSL Cipher Suite , check your Java version against Default Enabled Cipher Suites table您使用的是不兼容的SSL 密码套件,请根据默认启用的密码套件表检查您的 Java 版本

You can enable SSL debugging by adding the next line to system.properties file:您可以通过将下一行添加到system.properties文件来启用 SSL 调试:

javax.net.debug=ssl

and compare the handshake with the OpenSSL tool output并将握手与OpenSSL 工具输出进行比较

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM