0

I am trying to connect to https site from jmeter and I am getting the below response data in the View Results Tree:

javax.net.ssl.SSLHandshakeException: Received fatal alert: handshake_failure sun.security.ssl.Alerts.getSSLException(Alerts.java:192)

To connect to the https site there is a certificate which can be exported to .cer format. I tried exporting the certificate and then adding it to Jmeter_home\bin and installing it. Also from Jmeter Option->SSL Manager I selected the certificate. But the above attempts didn't work.

James Z
  • 12,209
  • 10
  • 24
  • 44
user2480755
  • 97
  • 3
  • 11
  • see https://stackoverflow.com/questions/32009083/javax-net-ssl-sslhandshakeexception-handshake-failure-when-using-jmeter-with-ss – Ori Marko May 07 '18 at 11:48
  • Possible duplicate of [javax.net.ssl.SSLHandshakeException: handshake\_failure when using JMeter with SSL (JDK8)](https://stackoverflow.com/questions/32009083/javax-net-ssl-sslhandshakeexception-handshake-failure-when-using-jmeter-with-ss) – arthur May 07 '18 at 12:04

1 Answers1

0

JMeter doesn't understand cer format, as of current version (4.0) it supports the following formats:

You can convert the certificate using Keytool or OpenSSL. Once done you can add javax.net.ssl.keyStore system property pointing to the .jks or .p12 certificate and your outgoing requests will be encrypted. More information: How to Set Your JMeter Load Test to Use Client Side Certificates

Dmitri T
  • 159,985
  • 5
  • 83
  • 133
  • I got the .pfx file which I converted to JKS and update the system.properties. Still I get the same response Response code: Non HTTP response code: javax.net.ssl.SSLHandshakeException Response message: Non HTTP response message: Received fatal alert: handshake_failure – user2480755 May 10 '18 at 11:26
  • Also in logs it looks like the jks is not loaded 2018-05-10 17:02:58,187 INFO o.a.j.u.SSLManager: KeyStore created OK 2018-05-10 17:02:58,187 WARN o.a.j.u.SSLManager: Keystore file not found, loading empty keystore – user2480755 May 10 '18 at 11:33