Problem with JMeter and HTTP Proxy Server with SSL

后端 未结 4 456
失恋的感觉
失恋的感觉 2021-01-18 18:08

We are using JMeter 2.4 and are trying to use the HTTP Proxy Server to capture a test plan.

\"Attempt HTTPS spoofing\" is not ticked.

The error we get in the

相关标签:
4条回答
  • 2021-01-18 18:18

    You may have to create the certificate for Jmeter. Below is a fantastic article detailing how to do it:

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

    0 讨论(0)
  • 2021-01-18 18:20

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

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

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

    0 讨论(0)
  • 2021-01-18 18:21

    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.

    (in Firefox : Options > Advanced > Encryption > View Certificates ==> Certificat Manager > Servers > choose website cert and Delete...)

    Milamber

    0 讨论(0)
  • 2021-01-18 18:24

    Install Jmeter Chrome extension which records HTTPS protocol without any issue.

    0 讨论(0)
提交回复
热议问题