Check SSL cert expire date from the cert file (.pem)

openssl x509 -enddate -noout -in cert.pem