Find out when SSL expires from a PEM file.

<pre lang="bash">
$ openssl x509 -enddate -noout -in your.cert
notAfter=Jan  5 07:08:14 2032 GMT

notAfter date is returned.