'Problem with Jmeter certificate to record a test

I'm trying to record a test, but when I install my certificate by Jmeter in the chrome, when I access the site that I want to record, chrome return me this:

Chrome recording certificate error

But my certificate that I installed before access the site is 100% valid:

Windows certificates

Other points:

  • I already made the Jmeter HTTPS proxy route configuration;

  • I already made the Windows/Browser proxy route configuration;

  • I installed the certificate correctly.

I don't know why my browser is not looking for the valid certificate and even without any certificate installed, still looks to this invalid certificate



Solution 1:[1]

If this is blocking you please install the certificate on Firefox and proceed with recording after setting the proxy.

  1. Open Firefox
  2. Type about:prefrences in the address bar
  3. Search for certificates in search box
  4. Click on View Certificate button
  5. Select Authorities tab
  6. Click on Import button
  7. Select the certificate from your JMeter/bin folder
  8. Check the first option in the popup (Trust CA to identify the websites)
  9. Click OK

enter image description here

Solution 2:[2]

Chrome warns you because JMeter's certificate is self-signed and it cannot be validated against trusted CA

The options are in:

  1. Ignore this error, the options are in:

  2. Add JMeter's self-signed certificate to Windows Trusted Root Certification Authorities:

    enter image description here

Solution 3:[3]

Mac OSX instructions for this were nowhere to be found.

On a Mac, just import "the root cert" from the Jmeter bin directory and into your "Keychain Access" tool. If you have to, you can use a tool called "Keystore Explorer" to convert the .crt file to a .cer before you do that import.

Then, you have to mark the cert trusted like this:

enter image description here

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Janesh Kodikara
Solution 2 Dmitri T
Solution 3 djangofan