Simple Certificate Authority for MITM proxies
Project description
CLI Usage Examples
certauth also includes a simple command-line API for certificate creation and management.
usage: certauth [-h] [-c CERTNAME] [-n HOSTNAME] [-d CERTS_DIR] [-f] [-w] root_ca_cert positional arguments: root_ca_cert Path to existing or new root CA file optional arguments: -h, --help show this help message and exit -c CERTNAME, --certname CERTNAME Name for root certificate -n HOSTNAME, --hostname HOSTNAME Hostname certificate to create -d CERTS_DIR, --certs-dir CERTS_DIR Directory for host certificates -f, --force Overwrite certificates if they already exist -w, --wildcard_cert add wildcard SAN to host: *.<host>, <host>
To create a new root CA certificate:
certauth myrootca.pem --certname "My Test CA"
To create a host certificate signed with CA certificate in directory certs_dir:
certauth myrootca.pem --hostname "example.com" -d ./certs_dir
If the root cert doesn’t exist, it’ll be created automatically. If certs_dir, doesn’t exist, it’ll be created automatically also.
The cert for example.com will be created as certs_dir/example.com.pem. If it already exists, it will not be overwritten (unless -f option is used).
The -w option can be used to create a wildcard cert which has subject alternate names (SAN) for example.com and *.example.com
History
The CertificateAuthority functionality has evolved from certificate management originally found in the man-in-the-middle proxy pymiproxy by Nadeem Douba.
It was also extended in warcprox by Noah Levitt of Internet Archive.
The CA functionality was also reused in pywb and finally factored out into this separate package for modularity.
It is now also used by wsgiprox to provide a generalized HTTPS proxy wrapper to any WSGI application.
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
Built Distribution
File details
Details for the file certauth-1.2.tar.gz
.
File metadata
- Download URL: certauth-1.2.tar.gz
- Upload date:
- Size: 8.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 66bc151d49fa75e2384b2cf26107e2fc453f13051d1952f3628ee33b6918d5cc |
|
MD5 | 0b60046924ec8bee726bb85c1c9307bb |
|
BLAKE2b-256 | 583621576d42f81c59e40d599924605268283a1d1d1e984774dee66750fea401 |
File details
Details for the file certauth-1.2-py2.py3-none-any.whl
.
File metadata
- Download URL: certauth-1.2-py2.py3-none-any.whl
- Upload date:
- Size: 10.0 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6987fca6e4d30a634954e60fed6747a93c5715e87db60d233df9d798a15fe346 |
|
MD5 | e37dac35ac5b6b10382b6279e8a42310 |
|
BLAKE2b-256 | dfa0e43be41cc219fed7adfd65e17e8a443e1212d27be151e8a77dfa14f5e6f9 |