Skip to content
MtrXTools

certificate has expired

The server certificate has expired

Seen in curl, OpenSSL, Node.js (CERT_HAS_EXPIRED), Java (CertificateExpiredException)

A certificate in the chain is past its expiry date.

Common causes

  • The site certificate expired.
  • An intermediate or cross-signed root expired and the server still sends the old one.
  • The client's trust store is too old to know the newer root.

How to fix it

  1. Renew and install the certificate; automate renewal.
  2. Make sure the server sends the current intermediate.
  3. Update the client's CA bundle or OS.
Check every certificate in the chain

Got a different message? Paste it into the error explainer.

Related errors

All 34 Command line & code errors