I am trying to add a p12 file to the JMeter 3.3 configuration to access the site. I added the following lines to the system.properties file:
javax.net.ssl.keyStoreType=pkcs12 javax.net.ssl.keyStore=C:\certs\mycert.p12 javax.net.ssl.keyStorePassword=mypassword
After that I restarted JMeter but got the same error, javax.net.ssl.SSLHandshakeException . I converted the p12 file from keytool to jks and added the following lines to the same file, replacing the previous ones.
javax.net.ssl.keyStore=C:\certs\mycert.jks javax.net.ssl.keyStorePassword=mypassword
In this case, an error message also appears:
Response code: HTTP response code: javax.net.ssl.SSLHandshakeException Response message: Non HTTP response message: fatal warning received: handshake_failure
I am using HTTP Client 4 as an implementation for HTTP Samplers. When I import the same certificate into the browser, it works correctly.
I also tried this tutorial: How to configure JMeter to use client-side SSL
source share