-
Notifications
You must be signed in to change notification settings - Fork 1.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
windowsservercore: urllib SSL errors #359
Comments
I've verified that this is indeed an issue, but I've no idea where to turn to figure out what's going on. 😞 |
Thanks for checking. Yeah, information about this seems sparse. One workaround (for users) would be to pip install certifi and set the SSL_CERT_FILE env var to the contained cacert.pem |
As another data point, whether the error drops seems to depend on the site you're trying to hit; for example, doing |
I have the same issue, maybe this whould be forwarded to the Python people? |
Has anyone been able to reproduce outside the minimal Docker environment
Microsoft provides? The most likely culprit is something the image is
missing that a normal install isn't.
(I'm not aware of anyone having filed anything upstream yet, but it's worth
a search before doing so.)
|
Well I have the issue also with mcr.microsoft.com/windows which is not so minimal anymore. Not sure what else to test. I'll have a look and file a bug on the Python tracker. |
As a (limited) workaround, maybe this can be added to the images: certutil -generateSSTFromWU roots.sst && certutil -addstore -f root roots.sst && del roots.sst But this really needs to be fixed in Python... |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
Looks like the latest on this is in https://bugs.python.org/issue36011 (and that it's still a problem 😞). |
I can't get SSL to work in the container, any ideas welcome:
The text was updated successfully, but these errors were encountered: