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


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
Tags: certificate, expiry, ssl
Last update:
2014-12-16 21:53
Author:
Chris Burton
Revision:
1.0
Average rating:0 (0 Votes)

You cannot comment on this entry

Chuck Norris has counted to infinity. Twice.

Records in this category

Tags