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 INFO-jmeter.protocol.http.sampler.HTTPSampler:错误响应代码:404
2010/08/02 14:46:02 INFO-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(未知来源)
在com.sun.net.ssl.internal.ssl.AppOutputStream.write(未知来源)
在java.io.BufferedOutputStream.flushBuffer(未知来源)
在java.io.BufferedOutputStream.flush处(未知来源)
在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屋!