Problem with JMeter and HTTP proxy with SSL

We are using JMeter 2.4 and trying to use an HTTP proxy to collect a test plan.

"HTTPS spoofing attempt" is not marked.

The error we get in the JMeter log:

2010/08/02 14:46:02 ERROR - jmeter.protocol.http.proxy.Proxy: Problem with SSL certificate? Make sure your browser is configured to accept the JMeter proxy certificate:
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)
in java.io.BufferedOutputStream.flushBuffer (Unknown source)
in 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)

Any ideas?

+4
source share
4 answers

You must remove the automatically signed certificate from your browser in relation to your website and restart the recording session using JMeter 2.4. In this new session, accept the dummy JMeter instance.

(in Firefox: Options> Advanced> Encryption> View certificates ==> Certificate Manager> Servers> select a website certificate and Delete ...)

Milamber

+4
source

From http://jmeter.apache.org/usermanual/component_reference.html#HTTP_Proxy_Server

When recording HTTPS, the JMeter proxy server uses a dummy certificate to allow it to accept an SSL connection from the browser. This certificate is not one of the certificates that browsers usually trust, and will not be for the correct host, so the browser should display a dialog asking if you want to accept the certificate or not. For example: 1) The server name "www.example.com" does not match the certificate name "JMeter Proxy". Someone may be trying to eavesdrop on you. 2) certificate for "JMeter Proxy" signed by an unknown certificate of authority "JMeter Provider". It is not possible to verify that it is a valid certificate. You will need to accept the certificate in order to allow the JMeter proxy SSL traffic to record it. You must accept the certificate temporarily.

Also see here http://osdir.com/ml/jmeter-dev.jakarta.apache.org/2009-08/msg00005.html

+3
source

You may need to create a certificate for Jmeter. The following is a fantastic article that details how to do this:

http://www.java-samples.com/showtutorial.php?tutorialid=210

+1
source

Install the Jmeter Chrome extension , which records the HTTPS protocol without any problems.

0
source

All Articles