As kind of described in one of the answers here https://stackoverflow.com/questions/27835619/urllib-and-ssl-certificate-verify-failed-error
a fix that worked was to call
pip install certifi-win32
and then using a modified code for the request:
response = urllib.request.urlopen(request, cafile=certifi.where())
using
This, however, was not required on any other installation yet, and it doesn't apply to all Windows installations even.
So, questions are:
-
Can we dig deeper to figure out why it doesn't work on some (but still works on most) Windows installations? Maybe there is a more elegant way to resolve it outside our script.
-
Can we have this optionally, without requiring an extra package to be installed for everyone else? Right now we don't have any dependencies and we plan to keep it that way
As kind of described in one of the answers here https://stackoverflow.com/questions/27835619/urllib-and-ssl-certificate-verify-failed-error
a fix that worked was to call
and then using a modified code for the request:
using
This, however, was not required on any other installation yet, and it doesn't apply to all Windows installations even.
So, questions are:
Can we dig deeper to figure out why it doesn't work on some (but still works on most) Windows installations? Maybe there is a more elegant way to resolve it outside our script.
Can we have this optionally, without requiring an extra package to be installed for everyone else? Right now we don't have any dependencies and we plan to keep it that way