How to check a SSL certificate's expiry date

Print the expiry date of a SSL certificate

Published: Tuesday, 15 September 2020
ssl openssl

For a certificate that is deployed, determine the host and port, then check it using openssl.

$ echo q | openssl s_client -connect ${HOST}:${PORT} | openssl x509 -text -dates | grep notAfter

where