Ignore/Turn off verification of the certificate in Jmeter/Java

sidman picture sidman · Oct 26, 2015 · Viewed 15.7k times · Source

I am testing HTTPS Requests to a custom server using JMeter, but the certificate that the custom server returns in untrusted (as this is a development server). Because of this, the requests fail as it needs a signed/verified CA Certificate.

Is there a way to turn off Jmeter's certificate verification similar to curl (-k option) ?

Answer

pawinder gupta picture pawinder gupta · Oct 26, 2015

You can include the certificate from the development server in Jmeter jvm.

  1. Download the certificate using any of the browsers. Here is a link on how to do this.

  2. Identify the jvm that Jmeter uses. This is generally your JAVA_HOME environment varaible.

  3. Add the certificate to the jvm truststore. Here are the steps.

That should fix it.