We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 74fb19a + be85442 commit fb93103Copy full SHA for fb93103
etcd.go
@@ -481,8 +481,10 @@ func tlsConfigFromInfo(info TLSInfo) (t TLSConfig, ok bool) {
481
t.Scheme = "https"
482
t.Server.ClientAuth, t.Server.ClientCAs = newCertPool(CAFile)
483
484
+ // The client should trust the RootCA that the Server uses since
485
+ // everyone is a peer in the network.
486
t.Client.Certificates = []tls.Certificate{tlsCert}
- t.Client.InsecureSkipVerify = true
487
+ t.Client.RootCAs = t.Server.ClientCAs
488
489
return t, true
490
}
0 commit comments