Skip to content

Commit

Permalink
Explain SSL_CERT_DIR specific format (#1470)
Browse files Browse the repository at this point in the history
It's easy to believe that any .pem files there will get picked up automatically, but that's not the case.
  • Loading branch information
pquentin authored Feb 17, 2021
1 parent 5af6ab0 commit 645ae4e
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions docs/environment_variables.md
Original file line number Diff line number Diff line change
Expand Up @@ -122,11 +122,9 @@ SSL_CERT_FILE=/path/to/ca-certs/ca-bundle.crt python -c "import httpx; httpx.get

## `SSL_CERT_DIR`

Valid values: a directory
Valid values: a directory following an [OpenSSL specific layout](https://www.openssl.org/docs/manmaster/man3/SSL_CTX_load_verify_locations.html).

If this environment variable is set then HTTPX will load
CA certificates from the specified location instead of the default
location.
If this environment variable is set and the directory follows an [OpenSSL specific layout](https://www.openssl.org/docs/manmaster/man3/SSL_CTX_load_verify_locations.html) (ie. you ran `c_rehash`) then HTTPX will load CA certificates from this directory instead of the default location.

Example:

Expand Down

0 comments on commit 645ae4e

Please sign in to comment.