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
Release history Release notifications | RSS feed
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.2.tar.gz
(2.6 kB
view hashes)
Built Distribution
Close
Hashes for httpx_pkcs12-1.0.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 28b763365cd1c3fd8a1b21d003c470bd581319c710c790f5edd127d5a3d896df |
|
MD5 | 95d117794b061a949fd3b106fa46b07d |
|
BLAKE2b-256 | b59af558573960fb198cc7abd56d801fa2de105eb0453b46bf993d9c0594803f |