# curl: (77) error setting certificate verify locations: CAfile: /etc/ssl/certs/ca-certificates.crt CApath: none

**Code:** `error setting certificate verify locations` · **Category:** SSL / TLS · **Seen on:** SSL, Linux, Docker

curl cannot read the CA bundle file it is configured to use — missing file, wrong path or permissions.

## Meaning

Install `ca-certificates` (Linux) or fix `CURL_CA_BUNDLE`/`SSL_CERT_FILE`. In Docker images (alpine, slim) the bundle is often absent. On Git for Windows a bad `http.sslCAInfo` path causes the same error.

## Common causes

- ca-certificates package not installed
- CURL_CA_BUNDLE/SSL_CERT_FILE pointing to a missing file
- Permission denied on the bundle
- Git `http.sslCAInfo` path wrong
- Broken symlink after OS upgrade

## Quick fix

1. `apt-get install -y ca-certificates && update-ca-certificates`
2. Unset or correct CURL_CA_BUNDLE / SSL_CERT_FILE
3. Fix `git config --global http.sslCAInfo`

## Detailed fix by platform

### Linux

1. `ls -l /etc/ssl/certs/ca-certificates.crt; env | grep -E "CA_BUNDLE|SSL_CERT"`

## How to diagnose

1. **File** — Exists and readable?
2. **Env** — Variables set?
3. **Image** — ca-certificates installed?

---
Source: [WhatIsMyError](https://whatismyerror.com/errors/ssl/curl-77-error-setting-certificate-verify-locations)
