How to check certification expiration date from command line

From wikieduonline
Jump to navigation Jump to search
openssl s_client -servername <NAME> -connect <HOST:PORT> 2>/dev/null | openssl x509 -noout -dates
CONNECTED(00000003)


openssl x509 -noout -dates -in /tmp/ca.cert
notBefore=Nov 10 19:45:26 2022 GMT
notAfter=Nov  7 19:45:26 2032 GMT


Related[edit]

See also[edit]

Advertising: