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:
Pedro Cunha 2024-12-16 06:50:11 +00:00 committed by GitHub
parent 9232ceb77e
commit 1325ce3cca
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

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