Wednesday, June 29, 2011

Test HTTPS sites using openssl

We often use telnet to connect to a web server and test it.
But telnet cannot be used when the site is HTTPS (SSL).
openssl command can be used to do this.

For example:
openssl s_client -connect encrypted.google.com:443

-quiet can be used if you want the connection to be closed once done. This is useful when you use this within scripts.

Below command can be used in a script:

 openssl s_client -tls1 -ign_eof -connect 10.102.34.122:443 <GET /
EOFH

No comments: