Browse Source

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

master
Francis Lavoie 3 years ago
committed by GitHub
parent
commit
7557d1d922
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 3
      modules/caddyhttp/reverseproxy/httptransport.go

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

Loading…
Cancel
Save