#1824·gatus

`[CERTIFICATE_EXPIRATION]` shows the old cert after renewal

Author: mxljeCreated Sep 27, 2026Updated Sep 27, 2026

We monitor an endpoint that uses 7-day certs from step-ca, behind Caddy, with a 30s interval and [CERTIFICATE_EXPIRATION] > 48h.

Caddy renewed the cert on schedule, and openssl s_client shows the new one (about 150h left). Gatus kept reporting the old one (about 42h left), and the endpoint went unhealthy.

It looks like Gatus reuses the connection between checks, so it keeps seeing the cert from the original handshake. Adding Connection: close under headers: works around it.

Is this expected? If so, is Connection: close the recommended way to get an accurate certificate check?

Thank you!