Why it matters
- Once the certificate expires, the browser shows a full warning page instead of the site, and most visitors go no further.
- Let's Encrypt's certificates last 90 days, and it advises renewing them every 60, which automatic renewal tools do. So a certificate close to its end usually means automatic renewal has stopped.
How to fix
- Renew the certificate now, then find out why automatic renewal stopped: with certbot, for example,
certbot renew --dry-runtries a renewal without changing anything. - And watch the certificate's expiry date, so you know before your visitors do.
How we detect
- We read the expiry date of the certificate the site sent when we fetched the page, and count the time left from the moment of the scan.
- The rule fails when fewer than 14 days are left, or less than a third of the certificate's lifetime when that is shorter: Let's Encrypt's short-lived certificates last 6 days, so two days of them are a third. The 14 days are our choice: renewal tools such as Certbot renew 30 days before the end, so a certificate with fewer than 14 days left has failed to renew for over two weeks.
- It does not apply to pages on HTTP.