tls: Replace usage of deprecated field trusted_ca_cert_file

This commit is contained in:
Pedro Cunha 2024-12-12 14:47:42 +00:00 committed by GitHub
parent 9232ceb77e
commit 680bc59857
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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
} }
} }
} }