Note to self – inspect TLS certificate from the CLI

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

echo | openssl s_client -showcerts -servername -connect 2> /dev/null | openssl x509 -inform pem -noout -text

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s