Open pleappleappleap opened 3 years ago
I am also facing the same issue
requests.exceptions.SSLError: HTTPSConnectionPool(host='pypi.python.org', port=443): Max retries exceeded with url: /pypi/Flask/json (Caused by SSLError(SSLError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:852)'),))
I'm currently developing a solution for this
I'm currently developing a solution for this Any estimation for a solution?
In the meanwhile, you can try setting env variables REQUESTS_CA_BUNDLE for .pem or SSL_CERT_FILE for .crt : https://stackoverflow.com/questions/30405867/how-to-get-python-requests-to-trust-a-self-signed-ssl-certificate
I can confirm that the solution of exporting the REQUESTS_CA_BUNDLE pointing to the local certification authority works, but it would be nice to have the possibility to either pass this option directly to pipreqs, or - even better - to have pipreqs using the same network configuration (proxy, ssl options, url index) directly from pip configuration.
I am also facing the same issue
Same issue here. However, setting the environment variable does not solve the problem in my case.
I have a corporate proxy server which performs a MITM on SSL connections, including the one used by pipreqs. When using pip, I have to use --trusted-host on the command-line. There does not appear to be a way to do this in pipreqs. Thanks for reading.