-
Notifications
You must be signed in to change notification settings - Fork 3.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
pip SSL certificate errors #6335
Comments
Hi @mcandre! Thanks for your report and concern regarding pip security. This issue is probably best suited for discussion on pip's issue tracker unless you believe there is a misconfiguration of pypi.org TLS. If I don't hear back from you in a few days, I'll transfer the issue either way. |
I encountered this problem when trying to set up CI on Windows for a project of mine. In my case, I was able to download http://curl.haxx.se/ca/cacert.pem to
And installing certifi fixed it properly (by installing the same cacert.pem I did manually). (EDIT: Fixed a missing word in the command.) |
I get following error with: This TLS upgrade seems to be an egg and chicken problem More over |
Oh, sorry, I meant been So in your case, it'd be But it looks like your issue may be different than mine was. |
This is what i get with
Besides certifi is already installed as part of the anaconda package (along with pip) Also brew and conda install is not working giving the same error Additionally i have run below command to check openssl: Result:
SSLHandshake looks to be fine with SSL. |
Hi @mcandre. Reliably determining the OS-level trust store to use is non-trivial and outside of the scope of pip. I would follow psf/requests#2966 for updates, since that would be the most likely route something like this gets into pip. For additional context, we have already tried and then reverted some OS-specific trust store path determination because even for a single platform there are deviations between different distributions. @varkap44, if you're still experiencing problems can you please create a separate issue? |
@chrahunt I am not experiencing the issue anymore. |
This issue has been automatically closed because there has been no response to our request for more information from the original author. With only the information that is currently in the issue, we don't have enough information to take action. Please reach out if you have or find the answers we need so that we can investigate further. |
Many users are reporting problems with pip[3] accessing the main pip repository to download packages. This happens for me, for example, in Windows 10. But I see a lot of reports for other operating systems as well. Unfortunately, just about every solution posted online involves disabling SSL certificate verification, blindly trusting servers that advertise on the pip domain names.
I'm not sure that this is secure, as a Man-in-the-Middle attack could involve spoofing the pip repository servers and injecting malware into the transferred packages. Could we fix the root cause of this problem, so that pip correctly loads certificate chains from the OS, and fix any issues with the pip repository server certificate configurations?
The text was updated successfully, but these errors were encountered: