Change test cluster to request client cert rather than verify if given

This commit is contained in:
Jeff Mitchell 2017-11-09 15:55:23 -05:00
parent 973656d987
commit d5b4011f89

View File

@ -997,7 +997,7 @@ func NewTestCluster(t testing.T, base *CoreConfig, opts *TestClusterOptions) *Te
Certificates: []tls.Certificate{tlsCert}, Certificates: []tls.Certificate{tlsCert},
RootCAs: testCluster.RootCAs, RootCAs: testCluster.RootCAs,
ClientCAs: testCluster.RootCAs, ClientCAs: testCluster.RootCAs,
ClientAuth: tls.VerifyClientCertIfGiven, ClientAuth: tls.RequestClientCert,
NextProtos: []string{"h2", "http/1.1"}, NextProtos: []string{"h2", "http/1.1"},
GetCertificate: certGetter.GetCertificate, GetCertificate: certGetter.GetCertificate,
} }