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.
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 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_BUNDLEwrong path- Wrong system clock
- Custom endpoint with a private CA
⚡ Quick fix
export AWS_CA_BUNDLE=/path/corp-ca.pem- Update the AWS CLI
- Verify the clock and endpoint URL
Detailed fix by platform
Shell
- bash
export AWS_CA_BUNDLE=$HOME/certs/corp-ca.pem aws sts get-caller-identity
How to diagnose
- Proxy — Inspecting?
- Bundle — Set and valid?
- 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:
Similar errors
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] ...')))
- 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)
- Keystore was tampered with, or password was incorrect Java keytool: java.io.IOException: Keystore was tampered with, or password was incorrect
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