Fork of https://github.com/ikreymer/certauth with a lot of changes.
Use cryptography.
Ability to use password with the ca or host certificates
Ability to select encoding to use for backend
Ability to cache credentials in the desired format
CLI Usage Examples
certauth also includes a simple command-line API for certificate creation and management.
usage: __main__.py [-h] [-c ISSUERNAME] [--issuerpass ISSUERPASS] [-n HOSTNAME] [-d CERTS_DIR] [-f] [-S SANS] issuer
Certificate Authority Cert Maker Tools
positional arguments:
issuer Path to existing CA or for a new root CA file
optional arguments:
-h, --help show this help message and exit
-c ISSUERNAME, --issuername ISSUERNAME
Name for issuer CA certificate
--issuerpass ISSUERPASS
Issuer cert file password
-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
-S SANS, --sans SANS add Subject Alternate Name to the cert
To create a new root CA certificate:
certauth myrootca.pem --issuername "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
Metadata
Release files for certauth2 0.4.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| certauth2-0.4.2.tar.gz | 10.9 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| certauth2-0.4.2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 20.1 kB
Release files / certauth2-0.4.2.tar.gz
| Download URL | certauth2-0.4.2.tar.gz |
|---|---|
| Size | 10.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ae75cdd5914420fc83fbd38082f0fcc470c4df049ecbb36957940e604189a881
|
|
BLAKE2b-256 checksum How to use checksums |
84536b7e130827d62ba1d687090775b54b5833505f80887c95ec867cd7e69755
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.6.0 importlib_metadata/4.8.2 pkginfo/1.8.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.10.0
|
Release files / certauth2-0.4.2-py3-none-any.whl
| Download URL | certauth2-0.4.2-py3-none-any.whl |
|---|---|
| Size | 9.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
e93f629d6f0ddd6b28d8abe6a8bdbe5cf32ee2682c858d710270b0d89e804164
|
|
BLAKE2b-256 checksum How to use checksums |
fc68285ec293b8d784ae5cdc4987f9fc73f76f48038d5664ee5148b7a355820d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.6.0 importlib_metadata/4.8.2 pkginfo/1.8.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.10.0
|
Security for certauth2 0.4.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.