Skip to content

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

@michaelhenry

Description

@michaelhenry

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.

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