Fast and extensible multi-platform HTTP/1-2-3 web server with automatic HTTPS
Mirrored from https://github.com/Slazee/caddy.git
Synced Nov 13, 23:00 UTC
reverseproxy: Avoid returning a `nil` error during GetClientCertificate (#4550)
Francis Lavoie committed
Feb 2, 2022 at 01:33 UTC
7557d1d92240d7dc36a6f8137ab542f3908f316c
1 file changed
+3
modules/caddyhttp/reverseproxy/httptransport.go
+3
@@ -364,6 +364,9 @@ func (t TLSConfig) MakeTLSClientConfig(ctx caddy.Context) (*tls.Config, error) {
364
return &cert.Certificate, nil
365
}
366
}
367
+ if err == nil {
368
+ err = fmt.Errorf("no client certificate found for automate name: %s", t.ClientCertificateAutomate)
369
+ }
370
return nil, err
371
}
372
}