[英]Getting javax.net.ssl.SSLHandshakeException: Received fatal alert: protocol_version from API response while running using jmeter
When I try to run an API for pressure testing using JMeter, I am getting this Java exeption:当我尝试使用 JMeter 运行 API 进行压力测试时,我得到了这个 Java 异常:
javax.net.ssl.SSLHandshakeException: Received fatal alert: protocol_version
I have tried changing the SSL version in the JMeter properties file, but I still see same issue.我尝试在 JMeter 属性文件中更改 SSL 版本,但我仍然看到同样的问题。
First of all you need to determine the reason of the problem, it can be done by adding the next line to system.properties file:首先您需要确定问题的原因,可以通过在system.properties文件中添加下一行来完成:
javax.net.debug=all
after JMeter restart look at the stdout and inspect which protocol(s) and cipher suite(s) are being used for the SSL handshake.在 JMeter 重新启动后,查看标准输出并检查哪些协议和密码套件正在用于 SSL 握手。
Depending on the outcome you may need to amend https.default.protocol
and/or https.socket.protocols
in user.properties file.根据结果,您可能需要修改user.properties文件中的https.default.protocol
和/或https.socket.protocols
。 If you're still at JDK 8 you might need to download Java Cryptography Extension (JCE) Unlimited Strength Jurisdiction Policy Files如果您仍在使用 JDK 8,则可能需要下载Java Cryptography Extension (JCE) Unlimited Strength Jurisdiction Policy Files
References:参考:
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.