Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/dickermoshe/livigent-ca-patch
Make pip, requests and their dependencies work on Livigent devices.
https://github.com/dickermoshe/livigent-ca-patch
Last synced: 22 days ago
JSON representation
Make pip, requests and their dependencies work on Livigent devices.
- Host: GitHub
- URL: https://github.com/dickermoshe/livigent-ca-patch
- Owner: dickermoshe
- License: gpl-3.0
- Created: 2023-01-20T20:04:40.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2023-01-20T20:18:02.000Z (almost 2 years ago)
- Last Synced: 2024-09-14T00:59:00.532Z (about 2 months ago)
- Language: Python
- Homepage:
- Size: 15.6 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# livigent-ca-patch
PyPi: [Link](https://pypi.org/project/livigent-ca-patch/)
Github: [Link](https://github.com/dickermoshe/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')```