You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
t.Fatal("ClientAuth was not set to what was in the options")
185
185
}
186
-
basePool, err:=SystemCertPool()
186
+
basePool, err:=x509.SystemCertPool()
187
187
iferr!=nil {
188
-
basePool=x509.NewCertPool()
188
+
t.Fatal("Failed to get SystemCertPool", err)
189
189
}
190
190
// because we are not enabling `ExclusiveRootPools`, any root pool will also contain the system roots
191
191
iftlsConfig.ClientCAs==nil||len(tlsConfig.ClientCAs.Subjects()) !=len(basePool.Subjects())+2 { //nolint:staticcheck // Ignore SA1019: tlsConfig.ClientCAs.Subjects has been deprecated since Go 1.18: if s was returned by SystemCertPool, Subjects will not include the system roots.
// because we are not enabling `ExclusiveRootPools`, any root pool will also contain the system roots
449
449
iftlsConfig.RootCAs==nil||len(tlsConfig.RootCAs.Subjects()) !=len(basePool.Subjects())+2 { //nolint:staticcheck // Ignore SA1019: tlsConfig.ClientCAs.Subjects has been deprecated since Go 1.18: if s was returned by SystemCertPool, Subjects will not include the system roots.
0 commit comments