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.3.tar.gz
(2.3 kB
view hashes)
Built Distribution
Close
Hashes for httpx_pkcs12-1.0.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2b30fae33d14172e0ee927b3456fe3aadcbc6602b4db7d2e1f45715d2e79a72a |
|
MD5 | 2dd6fa6eda7a3b277ed91ccf84095476 |
|
BLAKE2b-256 | 493f92f8d21b90fc61771ed53d14aaa2014d628e7178ceedaff6f10e5d890dd8 |