简体   繁体   English

获取 javax.net.ssl.SSLHandshakeException:收到致命警报:使用 jmeter 运行时来自 API 响应的协议版本

[英]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.

相关问题 获取异常 javax.net.ssl.SSLHandshakeException:收到致命警报:protocol_version - Getting an exception javax.net.ssl.SSLHandshakeException: Received fatal alert: protocol_version 获取 javax.net.ssl.SSLException:在使用 Jsoup 抓取数据时收到致命警报:protocol_version - getting javax.net.ssl.SSLException: Received fatal alert: protocol_version while scraping data using Jsoup 调用 Web 服务:javax.net.ssl.SSLException:收到致命警报:protocol_version - Calling web service: javax.net.ssl.SSLException: Received fatal alert: protocol_version javax.net.ssl.SSLException:收到致命警报:协议版本 - javax.net.ssl.SSLException: Received fatal alert: protocol_version javax.net.ssl.SSLException:收到致命警报:Selenium的protocol_version - javax.net.ssl.SSLException: Received fatal alert: protocol_version with Selenium 获取javax.net.ssl.SSLHandshakeException:收到致命警报:handshake_failure错误 - Getting javax.net.ssl.SSLHandshakeException: Received fatal alert: handshake_failure Error 获取 javax.net.ssl.SSLHandshakeException:收到致命警报:handshake_failure - Getting javax.net.ssl.SSLHandshakeException: Received fatal alert: handshake_failure Paypal Sandbox API:javax.net.ssl.SSLHandshakeException:收到致命警报:handshake_failure - Paypal Sandbox API: javax.net.ssl.SSLHandshakeException: Received fatal alert: handshake_failure 面对javax.net.ssl.SSLHandshakeException:实现SSL双向身份验证时收到致命警报:bad_certificate问题 - Facing javax.net.ssl.SSLHandshakeException: Received fatal alert: bad_certificate issue while implementing SSL two way authentication javax.ws.rs.ProcessingException:javax.net.ssl.SSLHandshakeException:收到致命警报:bad_certificate - javax.ws.rs.ProcessingException: javax.net.ssl.SSLHandshakeException: Received fatal alert: bad_certificate
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM