Skip to main content

'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.

Source Distribution

cert_session-0.0.2.tar.gz (2.7 kB view hashes)

Uploaded Source

Built Distribution

cert_session-0.0.2-py2.py3-none-any.whl (3.7 kB view hashes)

Uploaded Python 2 Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page