How to find the SSL Version and Cipher type used by a secure website

From DOS prompt, type OPENSSL s_client -connect

In order to find the SSL cipher being used by a particular HTTPS website, follow the steps specified below:

1. Launch a DOS Prompt.
2. Browse to the LoadRunner\bin folder.
3. Type in openssl and press ENTER. After this you would notice the prompt change toOPENSSL>.
4. Type in the following command

   OPENSSL>s_client -connect

The above statement will make the initial SSL handshake and the display output after the handshake is completed. The information will look as follows:

New, TLSv1/SSLv3, Cipher is RC4-MD5
Server public key is 1024 bit
Protocol : TLSv1
Cipher : RC4-MD5

This indicates that the SSL Version is 3 and the SSL Cipher being used is “RC4-MD5.”

The SSL version and Cipher type can be set in Vuser script using the web_set_sockets_options() function.

Note:If you get error as shown below, make sure that you are able to ping the server from the machine from which openssl command was run.
gethostbyname failure
error in s_client’

Leave a Comment