NOTICE: Significant community changes coming soon
The header menu and the home page on our community will be changing soon. Get more information HERE.
Highlighted
Micro Focus Frequent Contributor
Micro Focus Frequent Contributor
3960 views

Support Tip: How to find the SSL Version and Cipher type used by a secure website.

You can find the SSL Version and Cipher type used by a HTTPS website. You can as well set SSL Version and Cipher type through the script.

 

From DOS prompt, type OPENSSL s_client -connect www.yourwebsite.com:443

 

In order to find the SSL cipher being used by a particular HTTPS website, You can 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 to OPENSSL>.
4. Type in the following command

 

   OPENSSL>s_client -connect www.yourwebsite.com:443

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
   SSL-Session:
   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
connect:errno=11004
error in s_client'

 

For more details, You may refer to the below KB link:
https://softwaresupport.hp.com/group/softwaresupport/search-result/-/facetsearch/document/KM177385

Tags (1)
0 Likes
2 Replies
Highlighted
Established Member..
Established Member..

Hi PraveenaR,

 

Thanks for sharing Useful information.

 

But when i try to fired below command , i got attached error.

 

I am able to ping given url from host manchine.

 

please suggest

 

Regards,

Aarya

0 Likes
Highlighted
Absent Member.
Absent Member.

You can use 

S_client -host <hostname> -port <portnumber>

Thank you

SK

0 Likes
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.