stefanodvx / crunpyroll

Async API wrapper for Crunchyroll
MIT License
74 stars 21 forks source link

SSLCertVerificationError #29

Open swageeth opened 6 months ago

swageeth commented 6 months ago

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