Expand description
A Rust library for generating self-signed TLS certificates for local development.
Constants§
- DEFAULT_
CERT_ FILE_ NAME - Default name of development certificate file
- DEFAULT_
CERT_ FOLDER - Defaut name of folder with TLS certificates
- DEFAULT_
KEY_ FILE_ NAME - Default name of signing key file
- DEV_
CERT_ NAMES - Default certificate names
Functions§
- ask_
generate - Sends the message to the
stdiothat asks whether to create dev TLS certificate of not - dev_
cert_ exists - Checks whether dev certificate exists
- generate
- Generates self-signed certificate and saves them into
./certfolder - get_
cert_ path - Returns default path to the development TLS certificate .pem file
- get_
signing_ key_ path - Returns default path to the signin key .pem file