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

requests SSLError: CERTIFICATE_VERIFY_FAILED because certifi is outdated (missing a new root CA)

An old certifi bundle doesn't contain the root that now signs the site's certificate.

Exact message you may see requests.exceptions.SSLError: HTTPSConnectionPool certificate verify failed certificould not find a suitable TLS CA certificate bundle, invalid pathcertifi outdated CA bundleOSError: Could not find a suitable TLS CA certificate bundle, invalid pathREQUESTS_CA_BUNDLE invalid path
Seen on: Python SSL

Meaning

Update certifi and requests, avoid pinning ancient versions in requirements.txt, and check for REQUESTS_CA_BUNDLE/CURL_CA_BUNDLE overrides pointing at an old file. The Let's Encrypt root change (ISRG Root X1) broke many old bundles.

Common causes

  • Old pinned certifi
  • Container image with stale packages
  • REQUESTS_CA_BUNDLE pointing at an old bundle
  • Python 2/old requests
  • Corporate proxy root missing

⚡ Quick fix

  1. pip install -U certifi requests
  2. Check python -m certifi path and env overrides
  3. Rebuild images regularly

Detailed fix by platform

Shell

  1. bash
    pip install -U certifi requests
    python -c "import certifi; print(certifi.where())"

How to diagnose

  1. certifi — Current?
  2. Env override — Present?
  3. Image — Stale?

🔧 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):

1003 — Cloudflare Error 1003: Direct IP access not allowed (Cloudflare)10031013 — Cloudflare Error 1013: HTTP hostname and TLS SNI hostname mismatch (Cloudflare)1013ACM region — CloudFront can't use my ACM certificate: it must be requested in us-east-1 (N. Virginia) (SSL / TLS)ACM regionAWS_CA_BUNDLE — AWS CLI/SDK: SSL validation failed for https://... certificate verify failed (custom CA bundle / proxy) (SSL / TLS)AWS_CA_BUNDLEConnectionRefusedError [Errno 111] (SMTP) — Python: ConnectionRefusedError: [Errno 111] Connection refused — smtplib connect to localhost:25 (Email / SMTP)ConnectionRefusedErro…Django — 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…EOF occurred in violation of protocol — Python: ssl.SSLEOFError: EOF occurred in violation of protocol (_ssl.c:2396) (SSL / TLS)EOF occurred in viola…certifi

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.