Apache JMeter Apache JMeter: Test scenario recording Recording HTTPS Traffic


Example

If your web application uses the SSL encryption, you need to capture HTTPS traffic instead of HTTP. To record HTTPS Traffic with JMeter, you need to configure the SSL certificates.

Configure your SSL proxy

  1. Make sure the SSL proxy is configured the same way the HTTP proxy is configured:

enter image description here

Configure JMeter

  1. Start script recording by using the “JMeter Recording Template” feature as explained in example "Script Recording with the JMeter Template Feature".

  2. After opening the web application, you will see a message regarding an unsecure connection. To proceed, you just need to accept the JMeter dummy certificate:

  • Click on ‘Advanced’
  • Click on ‘Add Exception...’
  • Uncheck ‘Permanently store this exception’
  • Click on ‘Confirm security exception’

enter image description here

enter image description here

  1. If you see the “This site provides valid, verified identification. There is no need to add an exception.” warning message, you need to clear the browser history for your application, including cookies, cache, offline website data. Then, proceed with the same steps again.

This approach also works for mobile scripts recording, since the JMeter certificate needs to be installed only on the host which is being used to run JMeter.