How do I view the expiry date of an SSL certificate?

~ 0 min

To view the expiry dates of an SSL certificate simply run

openssl x509 -noout -in <filename> -dates

Which will output data in a format similar to this

notBefore=Jan  1 00:00:00 2011 GMT
notAfter=Jan  1 23:59:59 2012 GMT

If you wish to view all data stored in the certificate file you can run this which will show more details (and also includes the expiry date).

openssl x509 -noout -in <filename> -text
Average rating 0 (0 Votes)

You cannot comment on this entry