Fix · nginx
Fix “Certificate expiry” on nginx
Automate renewal (certbot / your host's auto-renew) so certs renew well before expiry; alert at 30 days left.
No server-level snippet for this control on nginx; apply the guidance below.
Verify the fix
Re-run the Certificate expiry check after deploying. Test config changes in staging first and keep a rollback: a wrong header can break a site faster than a missing one.
Other stacks: Apache · Caddy · Express / Node · Cloudflare