gpt4 book ai didi

java - 记录 HTTPS 站点的 Jmeter 问题

转载 作者:太空宇宙 更新时间:2023-11-03 14:16:51 24 4
gpt4 key购买 nike

我在录制 HTTPS 站点时遇到了一个奇怪的问题。错误代码是:-javax.net.ssl.SSLPeerUnverifiedException: peer not authenticated at sun.security.ssl.SSLSessionImpl.getPeerCertificate s(Unknown Source) 在我引用谷歌中的不同帖子后尝试了以下操作:-

  1. 将 JDK 更新为 JDK7
  2. 以crt,der,p7c导出网站证书
  3. 导入证书到jre7/lib/security的cacerts

我正在选择 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)

最佳答案

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

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

BlazeMeter 是一项付费服务​​,但您可以通过他们的免费帐户随意使用 chrome 扩展程序。

关于java - 记录 HTTPS 站点的 Jmeter 问题,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/18230797/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com