大家好我是Jmeter的新手,在录制HTTPS请求时会收到响应数据中的错误。
javax.net.ssl.SSLHandshakeException: Received fatal alert: unknown_ca
at sun.security.ssl.Alerts.getSSLException(Unknown Source)
at sun.security.ssl.Alerts.getSSLException(Unknown Source)
at sun.security.ssl.SSLSocketImpl.recvAlert(Unknown Source)
at sun.security.ssl.SSLSocketImpl.readRecord(Unknown Source)
at sun.security.ssl.SSLSocketImpl.readDataRecord(Unknown Source)
at sun.security.ssl.AppInputStream.read(Unknown Source)
at java.io.BufferedInputStream.fill(Unknown Source)
at java.io.BufferedInputStream.read(Unknown Source)
答案 0 :(得分:1)
您需要将证书(ApacheJMeterTemporaryRootCA.crt)添加到浏览器的受信任根文件夹中。 Becuase Jmeter在您录制时作为代理提供自己的证书,您需要告诉您的浏览器该证书是值得信赖的。