How to get the SSL cert expiration date from PEM file

Apr, 2018

How to get the the SSL cert expiration date from PEM file

openssl x509 -enddate -noout -in << pem file name >>