Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/lsiden/cert_session
Decorate requests.session with additional SSL issuer certificates
https://github.com/lsiden/cert_session
python requests tls-certificate
Last synced: 2 days ago
JSON representation
Decorate requests.session with additional SSL issuer certificates
- Host: GitHub
- URL: https://github.com/lsiden/cert_session
- Owner: lsiden
- Created: 2019-10-17T23:31:34.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2022-12-08T06:45:12.000Z (about 2 years ago)
- Last Synced: 2024-12-22T05:48:13.681Z (about 1 month ago)
- Topics: python, requests, tls-certificate
- Language: Python
- Size: 63.5 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Cert Session
## Background
http://westside-consulting.blogspot.com/2019/10/certsession.html
## Summary
This package provides an object, **CertSession**,
based on [requests](https://github.com/psf/requests/blob/master/requests/sessions.py).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