JMeter : How to record HTTPS traffic?

 picture · Nov 18, 2008 · Viewed 30.6k times · Source

I'm using Apache JMeter 2.3, which now supports "attempt HTTPS spoofing" under the Proxy Server element.

I've tried this on several different servers, and have had no success. Has anyone been able to successfully record from an HTTPS source with this setting?

Or barring successfully recording, can anyone share a work-around? When available, I simply have HTTPS turned off at the server level, but this is not always feasible. Thoughts?

Answer

UBIK LOAD PACK picture UBIK LOAD PACK · Apr 2, 2018
  1. Starting from JMeter 3.0 default port for the HTTP(S) Test Script Recorder is 8888

  2. The easiest way to configure recording is using JMeter Templates feature. From JMeter's main menu select:

    File -> Templates -> Recording -> Create
    

Recording Template

  1. Don't forget to start the recorder :

    • In JMeter < 4.0, Expand "Workbench", if >= 4.0, ignore this step
    • Select "HTTP(S) Test Script Recorder"
    • Click "Start" button

Start Recorder

  1. You will see a message regarding Root CA Certificate. Click OK:

Ok for message

  • it is OK, it informs you JMeter has created a Root Certificate Authority that you need to import in your browser to be able to record correctly HTTPS traffic.

    Start proxy

    1. To Import this Root CA certificate in Firefox (it is located in jmeter/bin folder) for example:

Step 1

Step 2

Step 3

Step 4

Step 5

  1. Configure browser to use JMeter as proxy:

Configure JMeter as proxy in Browser

It is now Ok.

  • You can navigate to your application, samplers will be created under "Recording Controller" which is under "Thread Group" element