Client certificate authentication


Is there a known way to allow Caddy to request and validate client certificates?

I plan to use this for a secure area, wanted to know if I could rely on caddy for it. :slight_smile:


Hello @marcoslater,

Yes :smile:

tls [cert key] {
    clients   [request|require|verify_if_given|] clientcas...

Note: and crypto/tls: allow choosing ClientAuth (and others?) based on SNI · Issue #15707 · golang/go · GitHub

Huh! That page changed since the last time I looked!

Blazing fast development here. :smile:

Thank you!


A post was split to a new topic: Client certificate authentication in Caddy v2