mirror of
https://github.com/caddyserver/website.git
synced 2025-06-22 14:10:32 -04:00
docs: tls internal
subdirectives
This commit is contained in:
parent
7f754b0e13
commit
0edb8ae10a
1 changed files with 16 additions and 3 deletions
|
@ -177,12 +177,15 @@ Obtains certificates from an internal certificate authority.
|
||||||
|
|
||||||
```caddy
|
```caddy
|
||||||
... internal {
|
... internal {
|
||||||
ca <name>
|
ca <name>
|
||||||
|
lifetime <duration>
|
||||||
|
sign_with_root
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
- **ca** is the name of the internal CA to use. Default: `local`. See the [PKI app global options](/docs/caddyfile/options#pki-options) to configure alternate CAs.
|
- **ca** <span id="ca"/> is the name of the internal CA to use. Default: `local`. See the [PKI app global options](/docs/caddyfile/options#pki-options) to configure alternate CAs.
|
||||||
|
- **lifetime** <span id="lifetime"/> is a [duration value](/docs/conventions#durations) that sets the validity period for interally issued leaf certificates. Default: 12h. It is NOT recommended to not change this, unless absolutely necessary.
|
||||||
|
- **sign_with_root** <span id="sign_with_root"/> forces the root to be the issuer instead of the intermediate. This is NOT recommended and should only be used when devices/clients do not properly validate certificate chains (very uncommon).
|
||||||
|
|
||||||
|
|
||||||
## Examples
|
## Examples
|
||||||
|
@ -207,6 +210,16 @@ tls internal {
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
Use custom options for the internal CA (cannot use the `tls internal` shortcut):
|
||||||
|
|
||||||
|
```caddy-d
|
||||||
|
tls {
|
||||||
|
issuer internal {
|
||||||
|
ca foo
|
||||||
|
}
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
||||||
Specify an email address for your ACME account (but if only one email is used for all sites, we recommend the `email` [global option](/docs/caddyfile/options) instead):
|
Specify an email address for your ACME account (but if only one email is used for all sites, we recommend the `email` [global option](/docs/caddyfile/options) instead):
|
||||||
|
|
||||||
```caddy-d
|
```caddy-d
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue