Skip to content
Docs v0.6.0

denvig certs

The certs command manages local TLS certificates, allowing you to run services over HTTPS in development with a local Certificate Authority.

Terminal window
denvig certs <subcommand>

For local certs to work they need to be trusted by your system. You can either import real certificates from a trusted CA or create your own local CA and generate certs from it.

A local ca is not required if you are strictly importing real certificates that are already trusted.

In order to use the local denvig CA you will need to initialize it and install it to your system keychain.

This is required before using any of the generate commands below.

Terminal window
denvig certs ca install

You can verify the local ca at anytime with the info command:

Terminal window
denvig certs ca info

you can fully remove the local and untrust from your system:

Terminal window
denvig certs ca uninstall

Initialize a local Certificate Authority and install it to the system keychain:

Terminal window
denvig certs init

Manage the local Certificate Authority:

Terminal window
denvig certs ca

Generate a TLS certificate for a domain signed by the local CA:

Terminal window
denvig certs generate

List all managed TLS certificates:

Terminal window
denvig certs list

Import an existing TLS certificate and private key:

Terminal window
denvig certs import

Remove a certificate by its directory name:

Terminal window
denvig certs rm <name>