Skip to main content
Help the Python Software Foundation raise $60,000 USD by December 31st!  Building the PSF Q4 Fundraiser

'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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for cert-session, version 0.0.3
Filename, size File type Python version Upload date Hashes
Filename, size cert_session-0.0.3-py2.py3-none-any.whl (3.7 kB) File type Wheel Python version py2.py3 Upload date Hashes View
Filename, size cert_session-0.0.3.tar.gz (2.8 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page