Skip to content

Commit

Permalink
Merge pull request #87 from philips/remove-insecureskipverify
Browse files Browse the repository at this point in the history
fix(etcd): remove insecureskipverify
  • Loading branch information
philips committed Aug 11, 2013
2 parents 74fb19a + be85442 commit fb93103
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion etcd.go
Original file line number Diff line number Diff line change
Expand Up @@ -481,8 +481,10 @@ func tlsConfigFromInfo(info TLSInfo) (t TLSConfig, ok bool) {
t.Scheme = "https"
t.Server.ClientAuth, t.Server.ClientCAs = newCertPool(CAFile)

// The client should trust the RootCA that the Server uses since
// everyone is a peer in the network.
t.Client.Certificates = []tls.Certificate{tlsCert}
t.Client.InsecureSkipVerify = true
t.Client.RootCAs = t.Server.ClientCAs

return t, true
}
Expand Down

0 comments on commit fb93103

Please sign in to comment.