intermediate expired SSL / TLS Origin: Network OSI layer 6 · Presentation Last updated 18 Nov 2026

Certificate chain error: an expired intermediate/cross-signed certificate is still served (leaf is valid)

The leaf certificate is fine, but one certificate in the served chain has expired, so some clients reject the connection.

Exact message you may see expired intermediate certificate in chaincertificate chain contains expired certificateDST Root CA X3 expired chaincross-signed intermediate expiredunable to get issuer certificate expired intermediate
Seen on: SSL OpenSSL

Meaning

Remove the expired cross-signed/intermediate certificate from your bundle and serve the current chain provided by your CA. Old OpenSSL 1.0.x/GnuTLS clients don't try alternative paths. Check openssl s_client -showcerts for each certificate's validity.

Common causes

  • Old cross-signed intermediate included in the bundle
  • CA replaced the intermediate but the old file remains
  • Clients that can't build an alternative chain
  • Chain file not updated at renewal
  • Cached chain in the load balancer

⚡ Quick fix

  1. Download the current chain from the CA
  2. Remove expired certificates from the bundle
  3. Reload and re-test with -showcerts

Detailed fix by platform

Shell

  1. bash
    openssl s_client -connect example.com:443 -showcerts </dev/null 2>/dev/null | awk '/BEGIN/{c++} {print > "chain" c ".pem"}'
    for f in chain*.pem; do openssl x509 -in $f -noout -subject -enddate; done

How to diagnose

  1. Each cert — Valid?
  2. Bundle — Current?
  3. Client — Old library?

🔧 Still not fixed?

Many errors look alike. If the steps above didn’t solve it, one of these is probably what you’re facing:

Where this error sits

Origin: Network. Errors that are often confused with or caused by this one (click to open):

chain order — Certificate chain in the wrong order: PEM bundle must start with the leaf, then intermediates (SSL / TLS)chain orderDjango — Django send_mail: ssl.SSLError: [SSL: WRONG_VERSION_NUMBER] (EMAIL_USE_SSL vs EMAIL_USE_TLS on the wrong port) (Email / SMTP)DjangoDST Root CA X3 expired (old clients fail) — Old clients: certificate has expired — Let's Encrypt chain uses expired DST Root CA X3 (OpenSSL 1.0.x, Android < 7.1.1) (SSL / TLS)DST Root CA X3 expire…expiry — Certificate expired unexpectedly — manual renewal missed or automation failing silently (SSL / TLS)expiryincomplete certificate chain — SSL Labs: Chain issues: Incomplete — Extra download (intermediate certificate missing) (SSL / TLS)incomplete certificat…SEC_ERROR_EXPIRED_CERTIFICATE — Firefox: Peer's Certificate has expired. Error code: SEC_ERROR_EXPIRED_CERTIFICATE (SSL / TLS)SEC_ERROR_EXPIRED_CER…trust anchor — Android: SSLHandshakeException: Trust anchor for certification path not found (SSL / TLS)trust anchorunable to get local issuer certificate — OpenSSL: error:num=20:unable to get local issuer certificate / SSL: CERTIFICATE_VERIFY_FAILED (SSL / TLS)unable to get local i…intermedi…

Explore the map of this error Full error map →

🧠 Still stuck? Analyze your error

Paste the full message, response headers or stack trace — we'll detect the platform and point to the most likely cause.

💬 What worked for others

No tips yet — did something else fix this for you?

Share what worked for you

Tips are checked by an editor before they appear. Links are removed.