'requests' session that appends custom certificate authority
Project description
Cert Session
Background
http://westside-consulting.blogspot.com/2019/10/certsession.html
Summary
This package provides an object, CertSession, based on requests.session that takes an alternate issuer certificate or issuer certificates collection as its single argument. Subsequent http requests made with this object will use both the given issuer certificate collection as well as the certificate collection provided by certifi.
Installation
pip install cert_session
Usage
from certsession import Session
session = Session('/path/to/my-root-certificates.pem')
response = session.get('https://my-web-service/...')
assert response.status_code == 200
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
cert_session-0.0.3.tar.gz
(2.8 kB
view details)
Built Distribution
File details
Details for the file cert_session-0.0.3.tar.gz
.
File metadata
- Download URL: cert_session-0.0.3.tar.gz
- Upload date:
- Size: 2.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.1.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.7.5rc1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d329eba1e8357f283f5955d4f256d343befbaa7cd604bf4bd26ec63b60223722 |
|
MD5 | a4c6683d0d78559db9874b5f2a305574 |
|
BLAKE2b-256 | 10f7c8e4559e408417e7f63c21efde3a7939998a67eca10ab6f7464ac558d09e |
File details
Details for the file cert_session-0.0.3-py2.py3-none-any.whl
.
File metadata
- Download URL: cert_session-0.0.3-py2.py3-none-any.whl
- Upload date:
- Size: 3.7 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.1.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.7.5rc1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6ce91fa06d7061f1a66c2130f2a23390c1a37fc57425e9b2c2ac92d2dfdcfb27 |
|
MD5 | 809576bd1954c1f43d208e6ce5632c73 |
|
BLAKE2b-256 | 637cdc87604ce9435b0bbc938eb299a7a1b8291ece3655a1aabd28bc85584cdd |