简体   繁体   中英

handshake_failure in Jmeter4

Tried many ways, still got handshake_failure in JMeter.

  1. Get cer file from Chrome with different type cer and p7b(used OpenSSL to read out 4 parts certificate and save in 4 pem files)
  2. Import in Keystore
  3. Set SSL manager in Jmeter

error still show handshake_failure

If you run your JMeter test in command-line non-GUI mode the SSL Manager will not work, you will need to set javax.net.ssl.keyStore and javax.net.ssl.keyStorePassword system properties , see How to Set Your JMeter Load Test to Use Client Side Certificates article for more information.

Also "from Chrome" you're getting server certificate , for two-way SSL handshake you need to get the client certificate .

If this doesn't help, handshake failure may have different causes, for example:

  1. Incorrect certificate, ie you're sending certificates in wrong order
  2. You're using incompatible SSL version, check https.default.protocol property
  3. You're using incompatible SSL protocol, check https.socket.protocols property
  4. You're using incompatible SSL Cipher Suite , check your Java version against Default Enabled Cipher Suites table

You can enable SSL debugging by adding the next line to system.properties file:

javax.net.debug=ssl

and compare the handshake with the OpenSSL tool output

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM