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

**Code:** `AWS_CA_BUNDLE` · **Category:** SSL / TLS · **Seen on:** AWS, Python, SSL

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

## 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?

---
Source: [WhatIsMyError](https://whatismyerror.com/errors/ssl/aws-sdk-ssl-validation-failed-custom-ca-bundle)
