Fix · Express / Node
Fix “Certificate expiry” on Express / Node
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 Express / Node; 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: nginx · Apache · Caddy · Cloudflare