mirror of
https://github.com/caddyserver/website.git
synced 2025-04-21 20:46:15 -04:00
tls: Replace usage of deprecated field trusted_ca_cert_file
(#430)
* tls: Replace usage of deprecated field `trusted_ca_cert_file` * Remove default value
This commit is contained in:
parent
9232ceb77e
commit
1325ce3cca
1 changed files with 2 additions and 4 deletions
|
@ -508,15 +508,13 @@ https:// {
|
|||
}
|
||||
```
|
||||
|
||||
Enable TLS Client Authentication and require clients to present a valid certificate that is verified against all the provided CA's via `trusted_ca_cert_file`
|
||||
Enable TLS Client Authentication and require clients to present a valid certificate that is verified against all the provided CA's via the [`trust_pool`](#trust_pool) `file` provider:
|
||||
|
||||
```caddy
|
||||
example.com {
|
||||
tls {
|
||||
client_auth {
|
||||
mode require_and_verify
|
||||
trusted_ca_cert_file ../caddy.ca.cer
|
||||
trusted_ca_cert_file ../root.ca.cer
|
||||
trust_pool file ../caddy.ca.cer ../root.ca.cer
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue