How to determine SSL cert expiration date from a PEM encoded certificate?
With openssl: openssl x509 -enddate -noout -in file.pem The output is on the form: notAfter=Nov 3 22:23:50 2014 GMT Also see MikeW’s answer for how to easily check whether the certificate has expired or not, or whether it will within a certain time period, without having to parse the date above.