Cert testing from the command line
30 Nov 2017I am always forgetting openssl command-line options. Just some quick commands for testing the validity of ssl certs from the command line
Checking local cert validity
openssl x509 -in server.crt -text -noout
Check a key
openssl rsa -in server.key -check
Check a remote cert
$ echo | openssl s_client -servername www.example.com \
-connect www.example.com:443 2>/dev/null | \
openssl x509 -text