Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/matusf/ca-bundle

No more SSL errors because of unset REQUESTS_CA_BUNDLE
https://github.com/matusf/ca-bundle

ca-certificates requests ssl

Last synced: 16 days ago
JSON representation

No more SSL errors because of unset REQUESTS_CA_BUNDLE

Awesome Lists containing this project

README

        

# CA-bundle

No more `SSLError`s because of unset `REQUESTS_CA_BUNDLE`.

This package searches through common locations of SSL / TLS certificates on linux and sets
the first existing location to `REQUESTS_CA_BUNDLE` and `HTTPLIB2_CA_CERTS` environment variables.

## Installation

```sh
pip install ca-bundle
```

## Usage

```python
import ca_bundle

ca_bundle.install()
```

Inspired by [Go's implementation](https://golang.org/src/crypto/x509/root_linux.go).