mirror of
https://github.com/caddyserver/caddy.git
synced 2026-07-01 14:21:53 +00:00
Caddyfile parameter "clients" of "tls" henceforth accepts a special first modifier. It is one of, and effects: * request = tls.RequestClientCert * require = tls.RequireAnyClientCert * verify_if_given = tls.VerifyClientCertIfGiven * (none) = tls.RequireAndVerifyClientCert The use-case for this is as follows: A middleware would serve items to the public, but if a certificate were given the middleware would permit file manipulation. And, in a different plugin such as a forum or blog, not verifying a client cert would be nice for registration: said blog would subsequently only compare the SPKI of a client certificate. |
||
|---|---|---|
| .. | ||
| config.go | ||
| config_test.go | ||
| graceful.go | ||
| server.go | ||
| server_test.go | ||
| virtualhost.go | ||