Skip to main content

Addon which activates PKCS12 certificates usage with HTTPX client.

Project description

httpx-pkcs12

Addon which activates PKCS12 certificates usage with HTTPX client.

Usage

with open('path/to/your/cert', 'rb') as f:
    cert_contents = f.read()
password = 'your-secret-password'

context = create_ssl_context(cert_contents, password)

# async version
async with httpx.AsyncClient(verify=context) as client:
    response = ...

# or sync version
response = httpx.get(..., verify=context)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

httpx_pkcs12-1.0.3.tar.gz (2.3 kB view hashes)

Uploaded Source

Built Distribution

httpx_pkcs12-1.0.3-py3-none-any.whl (2.9 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page