Browse Source
reverseproxy: Avoid returning a `nil` error during GetClientCertificate (#4550)
master
Francis Lavoie
3 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
3 additions and
0 deletions
-
modules/caddyhttp/reverseproxy/httptransport.go
|
|
@ -364,6 +364,9 @@ func (t TLSConfig) MakeTLSClientConfig(ctx caddy.Context) (*tls.Config, error) { |
|
|
|
return &cert.Certificate, nil |
|
|
|
} |
|
|
|
} |
|
|
|
if err == nil { |
|
|
|
err = fmt.Errorf("no client certificate found for automate name: %s", t.ClientCertificateAutomate) |
|
|
|
} |
|
|
|
return nil, err |
|
|
|
} |
|
|
|
} |
|
|
|