连接到https时,Jmeter SSL异常 [英] Jmeter SSL Exception when connecting to https
问题描述
我正在尝试从jmeter连接到https站点,并且在查看结果树"中获取以下响应数据:
I am trying to connect to https site from jmeter and I am getting the below response data in the View Results Tree:
javax.net.ssl.SSLHandshakeException:收到致命警报:handshake_failure sun.security.ssl.Alerts.getSSLException(Alerts.java:192)
javax.net.ssl.SSLHandshakeException: Received fatal alert: handshake_failure sun.security.ssl.Alerts.getSSLException(Alerts.java:192)
要连接到https站点,有一个可以导出为.cer格式的证书.我尝试导出证书,然后将其添加到Jmeter_home \ bin并进行安装.同样从Jmeter Option-> SSL Manager中,我选择了证书.但是上述尝试没有用.
To connect to the https site there is a certificate which can be exported to .cer format. I tried exporting the certificate and then adding it to Jmeter_home\bin and installing it. Also from Jmeter Option->SSL Manager I selected the certificate. But the above attempts didn't work.
推荐答案
JMeter不理解cer
格式,从当前版本(4.0)开始,它支持以下格式:
JMeter doesn't understand cer
format, as of current version (4.0) it supports the following formats:
- JKS
- PKCS12
您可以使用 Keytool 来转换证书a>或 OpenSSL .完成后,您可以添加指向.jks或.p12证书的javax.net.ssl.keyStore
系统属性,外发请求将被加密.详细信息:如何设置您的JMeter负载测试以使用客户端证书
You can convert the certificate using Keytool or OpenSSL. Once done you can add javax.net.ssl.keyStore
system property pointing to the .jks or .p12 certificate and your outgoing requests will be encrypted. More information: How to Set Your JMeter Load Test to Use Client Side Certificates
这篇关于连接到https时,Jmeter SSL异常的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!