At 05:30 every client starts failing with `x509: certificate has expired or is not yet valid`
BeginnerTroubleshootingCertificates, TLS and security incident response
Answer
Likely causes → The certificate expired because nobody renewed a manually issued one, or automated renewal was failing silently. Less often, the client clock is wrong ("not yet valid").
Diagnose →
echo | openssl s_client -connect api.acme.com:443 -servername api.acme.com 2>/dev/null | openssl x509 -noout -dates
date -u
Fix → Renew and deploy now (cmctl renew api-tls -n prod, or reissue in your CA or ACM). Then restart or reload anything that caches the certificate.
Prevent → Automate renewal everywhere, and alert at 21 and 7 days before expiry with blackbox exporter's probe_ssl_earliest_cert_expiry or cert-manager's certmanager_certificate_expiration_timestamp_seconds.
More on Certificates, TLS and security incident response
A cert-manager Certificate stays `Ready=False` and the Challenge shows `Waiting for HTTP-01 challenge propagation: wrong status code '404', expected '200'`IntermediateA DNS-01 challenge hangs forever with `DNS record for "acme.com" not yet propagated`, although `dig` from your laptop shows the TXT recordAdvancedIssuance fails with `429 urn:ietf:params:acme:error:rateLimited: too many certificates already issued`BeginnerA service calling another internal service fails with `x509: certificate signed by unknown authority`BeginnerBrowsers load `https://api.acme.com` fine, but `curl` and Java clients fail with `unable to get local issuer certificate`Intermediate`x509: certificate is valid for acme.com, *.acme.com, not api.eu.acme.com`Beginner