webzod
account

Renew the certificate before it expires on Caddy

tls.cert.expiring · effort: minutes

Why it matters

A certificate that is close to its end date will cause a site outage if it is not renewed in time. Automatic renewal normally replaces certificates well before then, so this often means renewal has silently stopped working.

The fix

  1. Caddy renews certificates automatically when about a third of their lifetime remains. If one is close to expiry, renewal is failing. Read the Caddy log for the ACME error.
  2. Check that ports 80 and 443 reach Caddy, the DNS records point at this server and no CAA record excludes your CA.
bash
journalctl -u caddy --since "7 days ago" | grep -i -E "error|renew"

Read the documentation (opens in a new tab)

Scan your domain to see whether this applies to you.