Skip to content

SSL certificate error on some (but not all) Windows installations #7

@mlimper

Description

@mlimper

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

import certifi

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions