记录HTTPS站点时的Jmeter问题

时间:2013-08-14 11:43:03

标签: java ssl jmeter keystore

我在录制HTTPS网站时遇到一个奇怪的问题。 错误代码是: - javax.net.ssl.SSLPeerUnverifiedException:对等未在sun.security.ssl.SSLSessionImpl.getPeerCertificate s(未知来源)上进行身份验证我在参考google中的不同帖子后尝试了以下内容: -

  1. 将JDK更新为JDK7
  2. 在crt,der和p7c
  3. 中导出了本网站的证书
  4. 将证书导入jre7 / lib / security的cacerts
  5. 我正在选择HTTP 4客户端进行录制。 如果我使用JAVA,则错误代码为: -

    javax.net.ssl.SSLHandshakeException: java.security.cert.CertificateException: Certificates does not conform to algorithm constraints at sun.security.ssl.Alerts.getSSLException(Unknown Source) at sun.security.ssl.SSLSocketImpl.fatal(Unknown Source) at sun.security.ssl.Handshaker.fatalSE(Unknown Source) at sun.security.ssl.Handshaker.fatalSE(Unknown Source) at sun.security.ssl.ClientHandshaker.serverCertificat e(Unknown Source) at sun.security.ssl.ClientHandshaker.processMessage(U nknown Source) at sun.security.ssl.Handshaker.processLoop(Unknown Source) at sun.security.ssl.Handshaker.process_record(Unknown Source) at sun.security.ssl.SSLSocketImpl.readRecord(Unknown Source) at sun.security.ssl.SSLSocketImpl.performInitialHands hake(Unknown Source) at sun.security.ssl.SSLSocketImpl.startHandshake(Unkn own Source) at sun.security.ssl.SSLSocketImpl.startHandshake(Unkn own Source) at I reinstalled JDK7.
    The error code has now changed to :-
    Secure Connection Failed
    Cannot communicate securely with peer: no common encryption algorithm(s).
    (Error code: ssl_error_no_cypher_overlap) 
    

1 个答案:

答案 0 :(得分:1)

我在你的问题中没有看到明确的问题(你只是说你在录制HTTPS网站时遇到了一个奇怪的问题)。

如果您的网站在Chrome中运行,您可以尝试使用JMeter Chrome扩展程序完全绕过JMeter的HTTP代理: https://chrome.google.com/webstore/detail/blazemeter-the-load-testi/mbopgmdnpcbohhpnfglgohlbhfongabi

BlazeMeter是一项付费服务​​,但您可以使用免费帐户随意使用Chrome扩展程序。