JMeter 和带有 SSL 的 HTTP 代理服务器的问题 [英] Problem with JMeter and HTTP Proxy Server with SSL
问题描述
我们正在使用 JMeter 2.4 并尝试使用 HTTP 代理服务器来捕获测试计划.
We are using JMeter 2.4 and are trying to use the HTTP Proxy Server to capture a test plan.
未勾选尝试 HTTPS 欺骗".
"Attempt HTTPS spoofing" is not ticked.
我们在 JMeter 日志中得到的错误是:
The error we get in the JMeter log is:
2010/08/02 14:46:02 错误 - jmeter.protocol.http.proxy.Proxy:SSL 证书有问题?确保浏览器设置为接受 JMeter 代理证书:
远程主机关闭连接2010/08/02 14:46:02 信息 - jmeter.protocol.http.sampler.HTTPSampler:错误响应代码:404
2010/08/02 14:46:02 信息 - jmeter.protocol.http.sampler.HTTPSampler:错误响应代码:404
2010/08/02 14:46:02 错误 - jmeter.protocol.http.proxy.Proxy:java.net.SocketException:连接被远程主机关闭
在 com.sun.net.ssl.internal.ssl.SSLSocketImpl.checkWrite(Unknown Source)
在 com.sun.net.ssl.internal.ssl.AppOutputStream.write(Unknown Source)
在 java.io.BufferedOutputStream.flushBuffer(Unknown Source)
在 java.io.BufferedOutputStream.flush(Unknown Source)
在 org.apache.jmeter.protocol.http.proxy.Proxy.writeToClient(Proxy.java:443)
在 org.apache.jmeter.protocol.http.proxy.Proxy.run(Proxy.java:264)
2010/08/02 14:46:02 ERROR - jmeter.protocol.http.proxy.Proxy: Problem with SSL certificate? Ensure browser is set to accept the JMeter proxy cert:
Connection closed by remote host
2010/08/02 14:46:02 INFO - jmeter.protocol.http.sampler.HTTPSampler: Error Response Code: 404
2010/08/02 14:46:02 INFO - jmeter.protocol.http.sampler.HTTPSampler: Error Response Code: 404
2010/08/02 14:46:02 ERROR - jmeter.protocol.http.proxy.Proxy: java.net.SocketException: Connection closed by remote host
at com.sun.net.ssl.internal.ssl.SSLSocketImpl.checkWrite(Unknown Source)
at com.sun.net.ssl.internal.ssl.AppOutputStream.write(Unknown Source)
at java.io.BufferedOutputStream.flushBuffer(Unknown Source)
at java.io.BufferedOutputStream.flush(Unknown Source)
at org.apache.jmeter.protocol.http.proxy.Proxy.writeToClient(Proxy.java:443)
at org.apache.jmeter.protocol.http.proxy.Proxy.run(Proxy.java:264)
有什么想法吗?
推荐答案
您必须在浏览器中删除与您的网站相关的自动签名证书,并重新启动与 JMeter 2.4 的记录会话.在这个新会话中,接受 JMeter 的虚拟证书.
You must remove in your browser the auto-signed certificat in relation with your website, and restart a record session with JMeter 2.4. In this new session, accept the JMeter's dummy cert.
(在 Firefox 中:选项 > 高级 > 加密 > 查看证书 ==> 证书管理器 > 服务器 > 选择网站证书并删除...)
(in Firefox : Options > Advanced > Encryption > View Certificates ==> Certificat Manager > Servers > choose website cert and Delete...)
米尔伯
这篇关于JMeter 和带有 SSL 的 HTTP 代理服务器的问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!