jpadilla / pyjwt

JSON Web Token implementation in Python
https://pyjwt.readthedocs.io
MIT License
5k stars 675 forks source link

<urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate #892

Closed michaelhenry closed 1 year ago

michaelhenry commented 1 year ago

Summary.

It throws this error <urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate.

What you expected.

urllib.request.urlopen should succeed.

What happened instead. it unable to fetch the JWKSet

Reproduction Steps

self.signing_key = self.jwks_client.get_signing_key_from_jwt(self.token)

System Information

$ python -m jwt.help
{
  "cryptography": {
    "version": "41.0.1"
  },
  "implementation": {
    "name": "CPython",
    "version": "3.11.2"
  },
  "platform": {
    "release": "21.6.0",
    "system": "Darwin"
  },
  "pyjwt": {
    "version": "2.7.0"
  }
}

This command is only available on PyJWT v1.6.3 and greater. Otherwise, please provide some basic information about your system.

michaelhenry commented 1 year ago

closing this ticket as #891 is now merged.