Live patches pip to use system certs by default
Project description
This package patches pip and requests at runtime to use certificates from the default system store (rather than the bundled certs ca).
This will allow pip to verify tls/ssl connections to servers who’s cert is trusted by your system install.
Simply install with:
pip install pip_system_certs
and pip should trust your https sites if your host os does.
This also extends to all direct uses of the requests library (and other packages that use requests)
PyInstaller
The method used to automatically enable the cert handling in requests/pip/etc relies on a .pth file script that python loads at startup. This method does not work when a python application is bundled into an executable with PyInstaller (or similar).
If you want to use this tool in an application built with PyInstaller it will need to be manually enabled in your application.
This can be done by adding the following line to the top of your main application script:
import pip_system_certs.wrapt_requests
This must be run before requests is imported.
Acknowledgements
The method of patching at runtime is built from the autowrapt module: https://pypi.python.org/pypi/autowrapt
version: 4.0
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file pip_system_certs-4.0.tar.gz
.
File metadata
- Download URL: pip_system_certs-4.0.tar.gz
- Upload date:
- Size: 5.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.11.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | db8e6a31388d9795ec9139957df1a89fa5274fb66164456fd091a5d3e94c350c |
|
MD5 | 9a2a7f036fc8ae7866eebe88abcadfbd |
|
BLAKE2b-256 | 279a4e949d0a281c5dd45c8d5b02b03fe32044936234675e967de49317a1daee |
File details
Details for the file pip_system_certs-4.0-py2.py3-none-any.whl
.
File metadata
- Download URL: pip_system_certs-4.0-py2.py3-none-any.whl
- Upload date:
- Size: 6.1 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.11.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 47202b9403a6f40783a9674bbc8873f5fc86544ec01a49348fa913e99e2ff68b |
|
MD5 | 7c93f176bfe0c2665a6b73a37cb5a5a8 |
|
BLAKE2b-256 | 708278c30a18858d484acd13a3aea22ead89c66f200e118d1aa4b4bae392efee |