Make requests, pip and dependant packages work on devices with Livigent.
Project description
livigent-ca-patch
Issue:
requests.exceptions.SSLError: HTTPSConnectionPool(host='google.com', port=443): Max retries exceeded with url: / (Caused by SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:992)')))
OR
requests.exceptions.SSLError: HTTPSConnectionPool(host='google.com', port=443): Max retries exceeded with url: / (Caused by SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: CA certificate key too weak (_ssl.c:992)')))
Solution:
pip install livigent_ca_patch --trusted-host pypi.org --trusted-host pypi.python.org --trusted-host files.pythonhosted.org
Usage:
>>> import livigent_ca_patch
>>> import requests
>>> requests.get('https://google.com')
<Response [200]>
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
livigent-ca-patch-0.2.0.tar.gz
(14.2 kB
view hashes)
Built Distribution
Close
Hashes for livigent_ca_patch-0.2.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 442544e8ccc5276c53c7fd4d8c295166e5f4b1b2acffde34d53de69555c5f607 |
|
MD5 | 6071c152a60d4cae82dbd4c0f3c30e41 |
|
BLAKE2b-256 | 550d4a85c1ce6888ea4bec6db695136b48ea5fdf7bf9d5e97061a9af3113db6b |