Add RequestClientCert to tls.Config for x509 auth

This commit is contained in:
Erik Wilson 2019-05-17 13:20:23 -07:00
parent 077eb13a90
commit 23e84783a3

View File

@ -439,6 +439,7 @@ func (s *server) cacheIPHandler(handler http.Handler) http.Handler {
func (s *server) serveHTTPS() error {
conf := &tls.Config{
ClientAuth: tls.RequestClientCert,
GetCertificate: s.getCertificate,
PreferServerCipherSuites: true,
}