Clones certificates with keys you control
Project description
certcloner
So you need to create some test data for something that is signed with a certificate? Then you need to create your own certificate, preferably with a full chain, as similar to the original as possible. You could always fire up step-ca
or something similar, but why not just clone the original chain, so that everything is as close to the real thing as possible?
Certcloner lets you do just that. Give it some certificates, and it will create clones with a private key that you control.
Limitations:
- Subject and Authority Key Identifiers will, by default, be updated, but stuff like SCT and CRL/AIA urls will not be.
- Only RSA and ECC keys are supported.
Installation
You probably want to install this using pipx
:
pipx install certcloner
Or, you can install it with plain pip:
pip install certcloner
Usage
Just point certcloner to one or several files with certificates, in either PEM or DER format:
certcloner ./mycert1.pem ./mycert2.crt ./mychain.pem
It will load all certificates, and output copies (plus the corresponding private key) to standard out.
Advanced usage:
Usage: certcloner [OPTIONS] [FILES]...
Options:
--version Show the version and exit.
--no-comment Do not include a comment in the finished certs.
--keep-key-identifiers Keep the original key identifiers in the finished
certs.
-h, --help Show this message and exit.
License
certcloner
is distributed under the terms of the MIT license.
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
Hashes for certcloner-2024.3.10.dev0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1bd7b7c2f798847981e4fddf369bc1b420ee1523742742492394bc60e156a6b1 |
|
MD5 | 38e9109adcbd3402006ad2ad275c24af |
|
BLAKE2b-256 | 4a0f0139407fab40fb013586f15a698c3e8b2023c2e91747a348d61c01aa8070 |
Hashes for certcloner-2024.3.10.dev0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e77c583884443ab761e8d82f29bec56d41ad3c6f823a3fc41c6331ea76785b3a |
|
MD5 | 18173af4bed18d930ed2bff01ffcfcd2 |
|
BLAKE2b-256 | 3047b3b4a88d53f4586ece663afcba9c7568093f2168b2d931857dc3541f7995 |