Skip to content

SSLCertVerificationError #29

Description

@swageeth

Hi!

I'm using Python 3.11 on Windows 11 and get the error:
SSLCertVerificationError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1006)

I have tried installing certifi and run with the command: os.environ['SSL_CERT_FILE'] = certifi.where()
But I still get the same error.

As I know, there is no ssl error in the general Python environment as I can pull websites using the requests library. So the SSL error is specific to this library. Is there a way to disable SSL verification within the library or an alternative by any chance?

I tried disabling using ssl._create_default_https_context = ssl._create_unverified_context too, but no luck.

Thank you

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions