Certs generator made it simple
Project description
certsGenerator
About the project
This project:
- aims to generate certificates from a json configuration file automatically. Just set the configuration properly and execute the script.
- is built on top of https://github.com/pyca/cryptography
Usage
- install the package
pip install certsGenerator
- run the command, for example
certsGenerator --conf=certsData/conf.json"
(beware of relative file paths)
Compatibility
Algorithms supported:
- ECDSA
- RSA
- Ed25519
Testing
Run test with pipenv run test
Contributing
Contributions are welcome. Feel free to participate!
- First open a ticket issue
- Push a PR eventually :)
Helpers
Check certificate chain with openssl
From the generated certificates, it is possible to check the certificates like this:
- Intermediate validated from Root
openssl verify -CAfile certs/root-ca/root-ca.crt certs/intermediate-ca/intermediate-ca.crt
- Postgres-ca validated from Intermediate
openssl verify -no-CAfile -no-CApath -partial_chain -trusted certs/intermediate-ca/intermediate-ca.crt certs/postgres-ca/postgres-ca.crt
- And so on down the chain
If previous is OK and if the next crt's are OK as well, then it would mean that the chain is validated as they are linked to each other (Root > Intermediate > Leaf).
This is a way to validate the certificates in case the configuration file not properly done but accepted by certsGenerator (normaly mistakes are triggered).
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
certsGenerator-0.4.1.tar.gz
(11.2 kB
view hashes)
Built Distribution
Close
Hashes for certsGenerator-0.4.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 321e87c01693176e089a2bb8c5950d898293a3341ddcb124605f76ef6042b87d |
|
MD5 | 4e0feb3caeba5357c85d2535c5a1e7f9 |
|
BLAKE2b-256 | fa1ba9a9bd94573302232c16e66c1d3958b0df3e68b87f17fe08cf21440d9316 |