-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
ez_setup using wget fails when SSL cannot be verified #75
Comments
Original comment by jaraco (Bitbucket: jaraco, GitHub: jaraco): The primary reason for using wget (and curl and powershell) is to perform SSL validation on the connection. The trace you sent indicates that the SSL validation failed, and in this case, we want ez_setup to fail. Otherwise, the download could be intercepted by a man-in-the-middle attack and the system could be compromised. I'll have to file a ticket upstream (pypi) to ask about the host name mismatch, but as it stands, the behavior you described is expected and desirable. |
Original comment by jaraco (Bitbucket: jaraco, GitHub: jaraco): After further consideration and reviewing PR 16, I agree there's more that should be done. It shouldn't be the case that the ez_setup is unable to download the content, so there should be a bypass option (which will disable the secure downloaders and simply fall back to the insecure, internal downloader). |
Original comment by jaraco (Bitbucket: jaraco, GitHub: jaraco): ez_setup.py now takes a --insecure argument to bypass the secure downloaders. download_setuptools also now accepts a new keyword argument 'download_factory', enabling programmitic invocation to customize the downloader resolution. Fixes #75. Thanks to Pablo Algarvio for the report and suggestions. |
Original comment by jaraco (Bitbucket: jaraco, GitHub: jaraco): I've updated the 'bootstrap' bookmark to point to the updated script. The command-line option is "--insecure" instead of "--insecure-https" as in the pull request. Please try that out and confirm this addresses the issue. |
Original comment by apshoemaker (Bitbucket: apshoemaker, GitHub: apshoemaker): Can you please add this to the setup install instructions? I got hit with this today and had to dig into this thread to find the solution. |
Original comment by jaraco (Bitbucket: jaraco, GitHub: jaraco): @apshoemaker Sorry for the delayed response. I'd accept a PR in this vein. |
…loaders. download_setuptools also now accepts a new keyword argument 'download_factory', enabling programmitic invocation to customize the downloader resolution. Fixes #75. Thanks to Pablo Algarvio for the report and suggestions.
Originally reported by: s0undt3ch (Bitbucket: s0undt3ch, GitHub: s0undt3ch)
Some versions of wget require extra arguments for proper downloads over HTTPS
The text was updated successfully, but these errors were encountered: