Skip to content

[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate #3

@ctgraham

Description

@ctgraham

The error when accessing HTTPS resources via httpx of:

[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate

can be resolved by adding the truststore module to use the machine's local certificate store:

https://pypi.org/project/truststore/

E.g.:

import truststore
truststore.inject_into_ssl()

Metadata

Metadata

Assignees

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