OpenSSL 3 · Certificates

Check if a certificate expires soon

Exit with an error if the certificate expires within 30 days (2,592,000 seconds). Handy in monitoring scripts.

openssl x509 -in cert.pem -noout -checkend 2592000

Official OpenSSL 3 documentation

More certificates commands

All certificates commands · OpenSSL 3 cheatsheet

Was this page helpful?