mirror of
https://github.com/caddyserver/website.git
synced 2025-04-22 21:16:15 -04:00
tls: Replace usage of deprecated field trusted_ca_cert_file
This commit is contained in:
parent
9232ceb77e
commit
680bc59857
1 changed files with 3 additions and 4 deletions
|
@ -508,15 +508,14 @@ 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
|
```caddy
|
||||||
example.com {
|
example.com {
|
||||||
tls {
|
tls {
|
||||||
client_auth {
|
client_auth {
|
||||||
mode require_and_verify
|
mode require_and_verify
|
||||||
trusted_ca_cert_file ../caddy.ca.cer
|
trust_pool file ../caddy.ca.cer ../root.ca.cer
|
||||||
trusted_ca_cert_file ../root.ca.cer
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue