Quick Tip – telnet with ssl

I’ve often used telnet to connect to random ports to make sure a service is working (eg: telnet somehost.example.com smtp to see if it’s accepting connections on port 25) but have been stuck with a suitable alternative to test connections that are secured with ssl.

Of course openssl is capable of doing this. Simply type:

openssl s_client -connect somehost.example.com:465

This will test an ssl secured connection to the secure smtp (smtps) port on a mail server. Change port number as required.

This article was posted by Kai Howells. If you liked this content and have any technical work in the Melbourne area, say hello via my contact form or give me a call on 0419 361 653 - I cover most of the greater Melbourne area and my rates are competitive.

Leave a Reply

Your email address will not be published. Required fields are marked *