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

AWS CLI/SDK: SSL validation failed for https://... certificate verify failed (custom CA bundle / proxy)

The AWS CLI or SDK can't verify the endpoint's certificate, usually behind a TLS-inspecting proxy or with an outdated bundle.

Exact message you may see SSL validation failed for https://sts.amazonaws.com/ [SSL: CERTIFICATE_VERIFY_FAILED]SSL validation failed for AWS CLIbotocore.exceptions.SSLError: SSL validation failedca_bundle aws configure
Seen on: AWS Python SSL

Meaning

Point the CLI at the right bundle: aws configure set ca_bundle /path/ca.pem or AWS_CA_BUNDLE, include the corporate root, update the CLI (its bundled certifi/openssl), and check the system clock. Don't use --no-verify-ssl in production.

Common causes

  • Corporate TLS proxy
  • Outdated CLI/bundle
  • AWS_CA_BUNDLE wrong path
  • Wrong system clock
  • Custom endpoint with a private CA

⚡ Quick fix

  1. export AWS_CA_BUNDLE=/path/corp-ca.pem
  2. Update the AWS CLI
  3. Verify the clock and endpoint URL

Detailed fix by platform

Shell

  1. bash
    export AWS_CA_BUNDLE=$HOME/certs/corp-ca.pem
    aws sts get-caller-identity

How to diagnose

  1. Proxy — Inspecting?
  2. Bundle — Set and valid?
  3. Clock — Correct?

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

460 — AWS ALB 460 Client Closed Connection (HTTP)460463 — AWS ALB 463 X-Forwarded-For header has too many IP addresses (HTTP)463561 — AWS ALB 561 Unauthorized (identity provider error) (HTTP)561ACM region — CloudFront can't use my ACM certificate: it must be requested in us-east-1 (N. Virginia) (SSL / TLS)ACM regionALB listener — ALB HTTPS listener: CertificateNotFound / default certificate missing or SNI certificate list incomplete (SSL / TLS)ALB listenercertifi — requests SSLError: CERTIFICATE_VERIFY_FAILED because certifi is outdated (missing a new root CA) (SSL / TLS)certifiCNAME — CloudFront: CNAMEAlreadyExists / alternate domain name not covered by the certificate (InvalidViewerCertificate) (SSL / TLS)CNAMEDjango — Django send_mail: ssl.SSLError: [SSL: WRONG_VERSION_NUMBER] (EMAIL_USE_SSL vs EMAIL_USE_TLS on the wrong port) (Email / SMTP)DjangoAWS_CA_BU…

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.