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 details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file livigent-ca-patch-0.2.0.tar.gz.
File metadata
- Download URL: livigent-ca-patch-0.2.0.tar.gz
- Upload date:
- Size: 14.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.16
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3e9dd263986978baf0409558f96cb498a31962da7109d5404cde0d8072ddeadd
|
|
| MD5 |
6bd4e06eeda568a18be9c8c5ff3a250e
|
|
| BLAKE2b-256 |
28a496cc3f8d05db912058fbe7496494ab9542c1264b54adcc2423c96a0eecb1
|
File details
Details for the file livigent_ca_patch-0.2.0-py3-none-any.whl.
File metadata
- Download URL: livigent_ca_patch-0.2.0-py3-none-any.whl
- Upload date:
- Size: 14.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.16
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
442544e8ccc5276c53c7fd4d8c295166e5f4b1b2acffde34d53de69555c5f607
|
|
| MD5 |
6071c152a60d4cae82dbd4c0f3c30e41
|
|
| BLAKE2b-256 |
550d4a85c1ce6888ea4bec6db695136b48ea5fdf7bf9d5e97061a9af3113db6b
|