Skip to content

Addon which activates PKCS12 certificates usage with HTTPX client.

License

Notifications You must be signed in to change notification settings

theLastOfCats/httpx-pkcs12

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

47 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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)

About

Addon which activates PKCS12 certificates usage with HTTPX client.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages