managing 40+ domains on a single server. Currently using certbot with Let’s Encrypt but the renewal cron sometimes fails silently and sites go down with expired certificates. Anyone have a more reliable setup?
Two options that are more reliable than standalone certbot:
- Use Caddy instead of nginx. Caddy handles SSL automatically - it obtains and renews certificates without any configuration. For 40+ sites this is the lowest maintenance option.
- If you want to stay on nginx, use acme.sh instead of certbot. It has better error handling, supports DNS validation out of the box, and the renewal hooks are more reliable.
Either way, set up monitoring that alerts you when a certificate is within 14 days of expiry.
we switched to Caddy for exactly this reason. Zero SSL management overhead. Automatic HTTPS for every domain. The only downside is that Caddy’s config syntax is different from nginx so there is a learning curve for the rewrite rules.