Warning

Your certificate expires within 30 days

The short version

Renew the certificate or check that automatic renewal is set up.

What it means

The certificate your server sends is valid, but it ends in less than 30 days. Nothing is broken yet. The detail shows how many days are left for each host name.

Why it matters

Automatic certificates normally renew around now, so this finding often clears by itself within a few days. If it doesn't, the certificate will expire and visitors will see a security warning. For a bought certificate, this is your reminder to renew before the last minute, because validation by a certificate authority can take days.

How to fix it

  1. Find out how the certificate is issued and renewed: by your host, by an automatic client on your server, or bought from an authority.
  2. For automatic certificates, check the renewal log or run a dry run to make sure the next renewal will succeed. If it runs and the web server reloads afterwards, you don't need to do anything else.
  3. For bought certificates, start the renewal now and install the new certificate with its full chain as soon as it arrives.
  4. Reload the web server after installing, so it serves the new certificate.

Let's Encrypt with certbot

Run sudo certbot renew --dry-run. If it succeeds, the scheduled renewal will replace the certificate before it expires.

Check it worked

Run the SSL check again after the renewal. The days left should be back to a comfortable number and the finding gone. If you check before the renewal has run, the finding will still show; that's expected.