Verify SSL certificate using OpenSSL

Posted: 11th March 2014 by Babar Shafiq in System Administration
Tags: , , ,

Use this command to verify the SSL certificate for the domain www.somedomain.com

openssl s_client -showcerts -connect www.somedomain.com:443

If the certificate is correctly installed the result should contain at the end:

Verify return code: 0 (ok)

That’s it