mtense productions

some stuff you might find useful

How to Test SSL and TLS Connections

Posted by on in Techie Stuff
  • Font size: Larger Smaller
  • Hits: 5926
  • Subscribe to this entry
  • Print

When web hosts lock down their firewalls, they often close commonly used outgoing SMTP ports.  Most everyone is used to port 25 being blocked, but my web host was also blocking 465 and 587 which are the common ports for sending SMTP traffic over SSL and TLS connections.

Of course, when you get the first level support guys trying to mess with the firewall, they are rarely successful.  It is handy to have a command you and they can run to check their work.

Here are the openssl commands for checking the connections.  These connect to google's gmail servers.

openssl s_client -connect -crlf -ign_eof
openssl s_client -connect -starttls smtp -crlf

The first command connects on port 465 is typically used for SMTP traffic over SSL.  You can test different versions of SSL with the -ssl2 and -ssl3 options.  There is nothing email specific about the command. A small variation can be used to check https connections (HTTP over SSL)

openssl s_client -connect -crlf -ign_eof

Tagged in: Email SSL Web


  • No comments made yet. Be the first to submit a comment

Leave your comment

Guest Friday, 25 September 2020
You are here: Home Aaron How to Test SSL and TLS Connections