Ssl – How to simulate SSL client failing handshake

ssl

I have a bug in my app, which is triggered when the client disconnects in the middle of SSL handskahe. The only way I found to trigger it is to run 100 threads in JMeter and suddenly stop the test, resulting in some of those 100 threads ending in desired state. Is there some more deterministic way to test this?

Best Answer

You can try with open ssl s_client (https://www.openssl.org/docs/apps/s_client.html ) .

If you use a disabled cipher its the same as failled handshake . (-cipher SRP-AES-256-CBC-SHA for example depends your server cipher :) ) .