Black Friday: 60% off yearly plans with code BF2026, until November 30. See the deal

Learn

How to check an SSL certificate

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.

The short answer
  • Read expiry, names (SAN), issuer chain, protocol versions and chain completeness.
  • openssl s_client plus openssl x509 prints dates, names and issuer in one command.
  • With maximum lifetime falling to 200, 100 and then 47 days, expiry checks must be automated.
Try the ssl certificate checkerFree, live, no signup

What should you look at in a certificate?

Certificate checklist
CheckGood resultProblem it catches
Expiry (notAfter)Comfortably in the futureNET::ERR_CERT_DATE_INVALID
Subject Alternative NamesEvery hostname you serve, including wwwNET::ERR_CERT_COMMON_NAME_INVALID
Issuer chainLeaf then intermediates, ending in a trusted rootNET::ERR_CERT_AUTHORITY_INVALID
Protocol versionsTLS 1.2 and 1.3 on; older versions offERR_SSL_VERSION_OR_CIPHER_MISMATCH
Revocation and staplingNo revocation; stapled response if you use OCSP staplingNET::ERR_CERT_REVOKED

Which OpenSSL commands show each item?

OpenSSL
# 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 2592000

What is the order for a quick check?

  1. 01

    Use the public hostname

    Test what visitors get, with SNI set via -servername, not the origin IP.

  2. 02

    Read the dates

    Note the days remaining. Let's Encrypt certificates last 90 days; a public CA certificate may last up to 200 days now.

  3. 03

    Check the names

    The bare domain and www are separate names and each must be listed.

  4. 04

    Check the chain

    The server should send the leaf and its intermediates. A leaf alone causes failures on some clients.

  5. 05

    Check versions

    Confirm TLS 1.2 and 1.3 are accepted with -tls1_2 and -tls1_3.

  6. 06

    Set up monitoring

    Manual checks catch today's state; expiry alerts catch the renewal that silently failed.

Which lifetimes apply to publicly trusted certificates?

200 days

Maximum certificate validity since March 15, 2026

Source: CA/Browser Forum Baseline Requirements

100 days

Maximum from March 15, 2027

Source: CA/Browser Forum Baseline Requirements

47 days

Maximum from March 15, 2029 (domain validation reuse falls to 10 days)

Source: DigiCert

90 days

Default Let's Encrypt certificate lifetime, renewed about every 60 days

Source: Let's Encrypt FAQ

How can you watch for unexpected certificates?

Command line and scripts

openssl x509 -checkend returns a pass or fail exit status for a time window, which suits cron jobs and CI.

Certificate Transparency logs

CAs log issued certificates in public, append-only logs. Public monitors let domain owners be alerted when a certificate for their domains appears.

What should a recurring SSL check include?

  • Days remaining on the public certificate for every hostname you own
  • The names listed, compared with the hostnames in use
  • Whether the chain is complete, tested from a clean client
  • Accepted TLS versions and whether older ones are refused
  • Whether the certificate issuer or fingerprint changed unexpectedly
  • Redirects and subdomains you forget, such as staging and mail web hosts

Common questions

How do I check an SSL certificate's expiration date?

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.

How do I check an SSL certificate chain?

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.

How can I check an SSL certificate in the browser?

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.

How often should I check my SSL certificates?

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.

Stop checking certificates by hand

Aepto monitors SSL expiry for every domain in your portfolio and alerts you before a certificate lapses.