Quickly create self-signed TLS certificates for your local development environment.
Project description
PyTLS-CA
PyTLS-CA is a Python application that quickly creates self-signed TLS certificates for your local development environment.
Install
You can install PyTLS-CA using pip:
pip install pytls-ca
Usage
You can specify options like the CA name, the services for which to generate certificates, and the output directory. For example:
pytls -n 'My Custom CA' -s example.com -s api.example.com -d './certs'
If you have existing CA certificates, you can specify the paths to the CA certificate and key.
pytls --ca-cert './certs/ca.crt' --ca-key './certs/ca.key' -s example.com -s api.example.com
You can verify your certificate information with openssl:
openssl x509 -noout -text -in ./certs/example.com.crt
Options
-n,--ca-name: The subject for the CA certificate. Defaults toPyTLS CA.-s,--services: The services for which to generate certificates. Can be specified multiple times for multiple services.-d,--output-directory: The directory in which to save the generated certificates. Defaults to./certificates.--ca-cert: The path to an existing CA certificate. If specified, the CA certificate will be used to sign the generated certificates.--ca-key: The path to an existing CA key. If specified, the CA key will be used to sign the generated certificates.-h,--help: Show the help message and exit.
Development
This project uses Poetry for dependency management. To install the project and its dependencies, run:
poetry install
This project uses Ruff for linting and code formatting.
Publishing
To publish a new version of the package, run:
poetry config pypi-token.pypi <token>
poetry publish --build
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pytls_ca-0.0.6.tar.gz.
File metadata
- Download URL: pytls_ca-0.0.6.tar.gz
- Upload date:
- Size: 4.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.7.1 CPython/3.11.2 Linux/6.6.87.2-microsoft-standard-WSL2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4449b13c2e5063faff352ccd05e54787b5e329912b432d94acaae71dfb2fdf1e
|
|
| MD5 |
0f076215e91def05b897b01643760e85
|
|
| BLAKE2b-256 |
6d86f2a5653c009538a1c2f32dd8fa6d77c1912871f0d2b6db3106633f4df0ce
|
File details
Details for the file pytls_ca-0.0.6-py3-none-any.whl.
File metadata
- Download URL: pytls_ca-0.0.6-py3-none-any.whl
- Upload date:
- Size: 5.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.7.1 CPython/3.11.2 Linux/6.6.87.2-microsoft-standard-WSL2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
caad499f0609627a60a9fa09673c6cb2f7954ea537f709c7eb301be9a7bcdab6
|
|
| MD5 |
a66d5af58febb8c7c4874a850be0fc68
|
|
| BLAKE2b-256 |
cd747a70e483c08bb994f9eb0762c6509cdf5c731f184c4da6bea86292627869
|