SSLCat is a simple Unix utility that reads and writes data across an SSL enable network connection.
SSLCat accepts a hostname and optional port number (443 is used if none is specified) and attempts to form a SSLv2 connection to the specified host. If all goes well, data is read from stdin and sent across the encrypted connection, while incoming data from the encrypted connection is sent stdout.
sslcat [ -Bd3T ] [port]
Enabled debugging output.
Drop connection on EOF from STDIN.
Force use of SSLv3.
Force use of TLSv1.
By using the echo command to produce a simple HTTP request and piping this through sslcat we can use standard Unix commands to process the result:
echo 'HEAD / HTTP/1.0rnrn' | sslcat hotmail.com | grep ^Server
The webserver running at www.sun.com doesn't like SSLv2 connection, so we need to add the -3 option to force the use of SSLv3:
echo 'HEAD / HTTP/1.0rnrn' | sslcat -3 sun.com | grep ^Server