Check SSL Certificate Expiration Date

To connect to a port:

$ echo | openssl s_client -servername NAME -connect HOST:PORT 2>/dev/null | openssl x509 -noout -dates

To check a certificate

openssl x509 -enddate -noout -in file.pem

Bookmark the permalink.

Leave a Reply

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