Note to self – inspect TLS certificate from the CLI

Lifting a tip from serverfault.com to inspect the TLS certificate for a server from the command line. Replace example.com with the domain to check and 443 with the appropriate port.

echo | openssl s_client -showcerts -servername example.com -connect example.com:443 2> /dev/null | openssl x509 -inform pem -noout -text

Published by

lekkim

Positive, competent, out-spoken, frank and customer focused architect and developer with a strong foundation in web, cloud and product development. I'm a strong advocate for API first and cloud based solutions and development. I have a knack for being able to communicate and present technically complicated matters in conference, customer and training settings. I've previously acted as team member and leader in a product organisation.

Leave a Reply

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