ask76
ask76

Reputation: 3

Jmeter - Non HTTP response message: Received fatal alert: handshake_failure

Am trying to automate API in Jmeter, wherein getting below error message,

Response code: Non HTTP response code: javax.net.ssl.SSLHandshakeException Response message: Non HTTP response message: Received fatal alert: handshake_failure

The same request is working fine in Postman, there is a client certificate generated in .CRT or .P79 formats.Also in postman > Certificates i configured Host , CRT file , KEY file, wanted to know in Jmeter where/how we can configure these.

Note : was not able to use openssl and Keytool as am not allowed to install in client machine.

Upvotes: 0

Views: 1959

Answers (1)

Dmitri T
Dmitri T

Reputation: 168247

JMeter can only send client certificates if they're present in a Java Keystore

So you need to convert your .crt certificate into .jks or .p12 Java Keystore and tell JMeter where the keystore is located and what is the password using javax.net.ssl.keyStore and javax.net.ssl.keyStorePassword JMeter System Properties like it's described in How to Set Your JMeter Load Test to Use Client Side Certificates article.

If you're not capable of installing OpenSSL and/or Keytool to the machine where JMeter lives you can use online certificate conversion solutions like:

Upvotes: 0

Related Questions