Command line and scripts
openssl x509 -checkend returns a pass or fail exit status for a time window, which suits cron jobs and CI.
Monitor
Protect
Manage
By role
Security
Renewals
Monitoring
To check an SSL certificate, run the hostname through an online SSL checker or use openssl s_client, then read five things: the expiry date, the names covered, the issuer chain, the protocol versions accepted and whether the chain is complete. Check the public hostname, since a CDN or load balancer may serve a different certificate from your origin.
| Check | Good result | Problem it catches |
|---|---|---|
| Expiry (notAfter) | Comfortably in the future | NET::ERR_CERT_DATE_INVALID |
| Subject Alternative Names | Every hostname you serve, including www | NET::ERR_CERT_COMMON_NAME_INVALID |
| Issuer chain | Leaf then intermediates, ending in a trusted root | NET::ERR_CERT_AUTHORITY_INVALID |
| Protocol versions | TLS 1.2 and 1.3 on; older versions off | ERR_SSL_VERSION_OR_CIPHER_MISMATCH |
| Revocation and stapling | No revocation; stapled response if you use OCSP stapling | NET::ERR_CERT_REVOKED |
# Dates, subject, issuer and names in one go
echo | openssl s_client -connect example.com:443 -servername example.com 2>/dev/null \
| openssl x509 -noout -dates -subject -issuer -ext subjectAltName
# All certificates the server sends, in order (not a verified chain)
openssl s_client -connect example.com:443 -servername example.com -showcerts
# Is a stapled OCSP response sent?
openssl s_client -connect example.com:443 -servername example.com -status
# Exit 1 if the certificate expires within 30 days
echo | openssl s_client -connect example.com:443 -servername example.com 2>/dev/null | openssl x509 -noout -checkend 2592000Test what visitors get, with SNI set via -servername, not the origin IP.
Note the days remaining. Let's Encrypt certificates last 90 days; a public CA certificate may last up to 200 days now.
The bare domain and www are separate names and each must be listed.
The server should send the leaf and its intermediates. A leaf alone causes failures on some clients.
Confirm TLS 1.2 and 1.3 are accepted with -tls1_2 and -tls1_3.
Manual checks catch today's state; expiry alerts catch the renewal that silently failed.
200 days
Maximum certificate validity since March 15, 2026
90 days
Default Let's Encrypt certificate lifetime, renewed about every 60 days
Source: Let's Encrypt FAQ
openssl x509 -checkend returns a pass or fail exit status for a time window, which suits cron jobs and CI.
CAs log issued certificates in public, append-only logs. Public monitors let domain owners be alerted when a certificate for their domains appears.
Scheduled checks and alerts on the public hostname catch expiring and replaced certificates. See how to monitor SSL certificates continuously.
Use an online SSL checker on the public hostname, or run openssl s_client piped to openssl x509 -noout -dates. The notAfter line is the expiry. Add -checkend with a number of seconds to get a pass or fail exit status for scripts.
Run openssl s_client with -showcerts to list the certificates the server sends, in order. The list is not a verified chain, so also test with an SSL checker or a client without browser caching to confirm the intermediate certificates are present.
Click the lock or site-information icon next to the address, then open the certificate details. You can read the issuer, the validity dates and the names. The exact menu labels differ by browser and version, so check your browser help.
Continuously, with alerts well before expiry. Certificate lifetimes are falling from 200 days to 100 days in 2027 and 47 days in 2029, so renewals will happen more often and a single failed renewal is more likely to reach production.
Aepto monitors SSL expiry for every domain in your portfolio and alerts you before a certificate lapses.