mirror of
https://github.com/hashicorp/vault.git
synced 2025-09-03 13:01:12 +02:00
Change test cluster to request client cert rather than verify if given
This commit is contained in:
parent
973656d987
commit
d5b4011f89
@ -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,
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user