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.
expired intermediate certificate in chaincertificate chain contains expired certificateDST Root CA X3 expired chaincross-signed intermediate expiredunable to get issuer certificate expired intermediate 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
- Download the current chain from the CA
- Remove expired certificates from the bundle
- Reload and re-test with
-showcerts
Detailed fix by platform
Shell
- 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
- Each cert — Valid?
- Bundle — Current?
- 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:
Similar errors
- chain order Certificate chain in the wrong order: PEM bundle must start with the leaf, then intermediates
- Django Django send_mail: ssl.SSLError: [SSL: WRONG_VERSION_NUMBER] (EMAIL_USE_SSL vs EMAIL_USE_TLS on the wrong port)
- DST 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)
Most viewed in SSL / TLS
- HTTPSConnectionPool: Max retries exceeded (SSLError) Python requests: HTTPSConnectionPool(host='api.example.com', port=443): Max retries exceeded with url: /v1 (Caused by SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] ...')))
- Keystore was tampered with, or password was incorrect Java keytool: java.io.IOException: Keystore was tampered with, or password was incorrect
- Challenge failed for domain Let’s Encrypt / Certbot: Challenge failed for domain example.com — Invalid response from http://example.com/.well-known/acme-challenge/x: 404
Other ways to find it
Where this error sits
Origin: Network. Errors that are often confused with or caused by this one (click to open):
🧠 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.
Report a correction or suggest an improvement
Last updated 18 Nov 2026