Skip to main content

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

Options

  • -n, --ca-name: The subject for the CA certificate. Defaults to PyTLS 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

pytls_ca-0.0.5.tar.gz (4.0 kB view hashes)

Uploaded Source

Built Distribution

pytls_ca-0.0.5-py3-none-any.whl (5.0 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page