How to check certification expiration date from command line

From wikieduonline
Revision as of 09:41, 6 December 2023 by Welcome (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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: