reverseproxy: Avoid returning a nil error during GetClientCertificate (#4550)

This commit is contained in:
Francis Lavoie 2022-02-02 01:33:36 -05:00 committed by GitHub
parent ff74a0aa09
commit 7557d1d922
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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