The message came in on a Monday morning: "Hey, your site says it's not private?"

I opened it on my phone and got the full-screen warning. On my laptop, Chrome was more specific: NET::ERR_CERT_DATE_INVALID. My Let's Encrypt certificate had expired.

That made no sense to me. I had set up Certbot on this little Ubuntu 24.04 server more than a year earlier, watched the first renewal go through, and never thought about it again. That was sort of the point.

sudo certbot certificates 
Certificate Name: example.com Expiry Date: 2026-11-21 08:14:03+00:00 (INVALID: EXPIRED) 

Expired on Saturday. Two days of every visitor being told my site might be stealing their data.

The timer was working. That was the problem.

My first thought was that the renewal timer had died. It hadn't.

systemctl list-timers | grep certbot sudo journalctl -u certbot.service -n 30 

certbot.timer had been running twice a day, every day, exactly as designed. It had also been failing twice a day for weeks. Certbot only tries to renew when a certificate gets close to expiry, so the failures started about a month before the end, and nobody was reading that log.

So why didn't I get the usual "your certificate expires soon" email? Because there isn't one anymore. Let's Encrypt stopped sending expiry emails in June 2025. I knew that, in the abstract. I had never connected it to "so now nobody will tell you."

First error: the firewall I cleaned up

I ran a practice renewal, which doesn't touch the real certificate or count against rate limits:

sudo certbot renew --dry-run 
Type: connection Detail: 203.0.113.10: Fetching http://example.com/.well-known/acme-challenge/...: Timeout during connect (likely firewall problem) 

"Likely firewall problem." Certbot was being polite. It was definitely a firewall problem, and it was definitely me.

A few months earlier I had tidied up UFW. The site redirects everything to HTTPS, so I thought port 80 was dead weight and removed it. What I'd forgotten is how Let's Encrypt checks that you own the domain: it asks your server to put a small file under /.well-known/acme-challenge/, then fetches it over plain HTTP, on port 80. Even if your site never serves anything there except a redirect.

sudo ufw allow 80/tcp 

Second error: the site I moved

Dry run again. A different error this time, which felt like progress:

Type: unauthorized Detail: 203.0.113.10: Invalid response from http://example.com/.well-known/acme-challenge/...: 404 

Let's Encrypt could reach the server now, but the server said the file didn't exist. I looked at how Certbot was set up to renew:

sudo cat /etc/letsencrypt/renewal/example.com.conf 
authenticator = webroot webroot_path = /var/www/html, 

And there it was. Since the first certificate, I had moved the site behind a small Node.js app, and Nginx now sent every request, location / and all, to that app. Certbot was still dutifully writing its challenge file into /var/www/html, a folder nothing served anymore. The app had never heard of /.well-known/acme-challenge/, so it answered 404.

The fix was to give the challenge path its own home in the port 80 server block, ahead of the redirect:

location ^~ /.well-known/acme-challenge/ { root /var/www/letsencrypt; default_type "text/plain"; } 

Then tell Certbot about the new folder. certbot reconfigure updates the renewal settings without issuing a new certificate, which I didn't know existed until that morning:

sudo mkdir -p /var/www/letsencrypt sudo nginx -t && sudo systemctl reload nginx sudo certbot reconfigure --cert-name example.com --webroot -w /var/www/letsencrypt 

Dry run: Congratulations, all simulated renewals succeeded. I may have said something out loud.

There was no third error. Except there was.

I ran the real renewal. It succeeded. I refreshed the site.

Still expired.

I refreshed again, cleared the cache, opened a private window. Still expired. sudo certbot certificates showed a brand new expiry date, and the browser showed the old one.

This one took me longer than it should have. Nginx reads the certificate files when it starts or reloads, then keeps them in memory. Certbot's Nginx plugin reloads it for you after a renewal. The webroot method doesn't. Certbot had put a perfectly good new certificate on disk, and Nginx was still handing out the dead one.

sudo systemctl reload nginx 

Padlock back. Then, so I'd never have to remember that again, a deploy hook. It only runs after a successful renewal:

sudo sh -c 'printf "#!/bin/sh\nsystemctl reload nginx\n" > /etc/letsencrypt/renewal-hooks/deploy/reload-nginx.sh' sudo chmod +x /etc/letsencrypt/renewal-hooks/deploy/reload-nginx.sh 

Why this is about to matter more

Here's the part that made me take it seriously instead of just being embarrassed. From 10 February 2027, Let's Encrypt certificates will last 64 days instead of 90, and from 2028, 45 days. Renewals will also have to pass the domain check again more often, because a successful check can be reused for less time.

With 90-day certificates, my broken setup still gave me a few quiet weeks before anything showed. With shorter certificates, the gap between "renewal starts failing" and "visitors see a warning" keeps shrinking. If nothing is watching, you find out the way I did.

What I do now

I run sudo certbot renew --dry-run after any change to Nginx, the firewall or DNS. It takes ten seconds and tells me right away if I've broken renewal.

I check the certificate the site actually serves, not the file on disk. This runs from a daily cron job and writes to the system log if fewer than 7 days are left:

echo | openssl s_client -connect example.com:443 -servername example.com 2>/dev/null \ | openssl x509 -noout -checkend 604800 || logger -t ssl-check "certificate expires within 7 days" 

And I read Certbot's error properly before touching anything, because each one points somewhere different:

  • Timeout during connect: nothing answered on port 80, almost always a firewall.
  • Invalid response ... 404: the server answered, but the challenge file wasn't where Let's Encrypt looked.
  • New date in certbot certificates, old date in the browser: the web server never reloaded.

There are more of these: DNS problems, stale IPv6 records, standalone mode fighting Nginx for port 80, rate limits from retrying too much. When I hit a new one, I go through this checklist of Certbot renewal errors and their fixes instead of guessing.

Auto-renewal is still the right idea. The renewal itself was never the problem. Assuming it would keep working with nobody checking was.