docs: Add caddy trust command docs

This commit is contained in:
Matthew Holt 2020-04-09 19:16:42 -06:00
parent 9d18f10f62
commit 98ecaa5329
No known key found for this signature in database
GPG key ID: 2A349DD577D586A5

View file

@ -56,6 +56,9 @@ The ellipses `...` indicates a continuation, i.e. one or more parameters.
- **[caddy stop](#caddy-stop)**
Stops the running Caddy process
- **[caddy trust](#caddy-trust)**
Installs a certificate into local trust store(s)
- **[caddy untrust](#caddy-untrust)**
Untrusts a certificate from local trust store(s)
@ -299,6 +302,14 @@ Gracefully stops the running Caddy process (other than the process of the stop c
If you want to stop the current configuration but do not want to exit the process, use [`caddy reload`](#caddy-reload) with a blank config, or the [`DELETE /config/`](/docs/api#delete-configpath) endpoint.
### `caddy trust`
<pre><code class="cmd bash">caddy trust</code></pre>
Installs the root certificate for Caddy's default internal CA (named "local") into the local trust store(s); intended for development environments only. May prompt for a password if there are not already sufficient privileges.
**This command is often unnecessary.** Because Caddy will install its root certificate into local trust stores automatically when first needed, this command is only useful if you need to pre-install the certificates while you have elevated privileges, like during system provisioning in automated environments.
### `caddy untrust`