SSL certificate validity

criticalsecurity-ssl-validity

A certificate that's expired, expiring soon, or doesn't match the hostname breaks the site outright. What browsers do, and how to renew it.

What it is

This checks the TLS certificate a server presents on port 443: whether it has expired, whether it's about to, and whether the hostname being scanned actually appears in the certificate's subject or Subject Alternative Names.

A certificate that fails any of those checks doesn't just look bad — browsers interrupt navigation with a full-page warning rather than rendering anything, for anyone using a default configuration.

Why it matters

Chrome, Safari and Firefox all treat an invalid certificate as a hard stop, not a subtler degradation: a visitor sees an interstitial telling them the connection isn't private, with an extra click required to proceed even for people who understand what they're seeing.

Because this fails a whole visit rather than one page, it's one of two checks — the other is the site not using HTTPS at all — that cap this scanner's overall score at 49 regardless of everything else the site does well.

How to fix it

with a reference doc
certbot — renew now, certificate already expired
certbot renew --cert-name example.com --force-renewal
certbot — routine renewal ahead of expiry
certbot renew --cert-name example.com

Reference documentation

Related checks

3
mediumStrict-Transport-Security (HSTS) headerStrict-Transport-Security (HSTS) is a response header that tells a browser to only ever connect to this host over HTTPS, for a duration set by max-age, without first trying HTTP.highMixed contentMixed content is any http:// resource — a script, stylesheet, image or iframe — loaded on a page served over https://. The page itself is encrypted; the mixed-content resource is not.mediumSPF recordSPF (Sender Policy Framework) is a DNS TXT record on a domain's apex that lists which mail servers are authorized to send email as that domain. A receiving mail server checks the sending IP against this list before accepting a message.

This is one of the 75 checks the scanner runs. See what we check for the full list, every severity weight, and how the score is computed from them.

See whether your own site passes ssl certificate validity.

One page, all 75 checks, free. No account, no card.

Run a scan