Browse Source

functional-tester/rpcpb: create client with "InsecureSkipVerify"

Signed-off-by: Gyuho Lee <gyuhox@gmail.com>
Gyuho Lee 7 years ago
parent
commit
62e512d4cc
1 changed files with 8 additions and 0 deletions
  1. 8 0
      tools/functional-tester/rpcpb/member.go

+ 8 - 0
tools/functional-tester/rpcpb/member.go

@@ -52,6 +52,10 @@ func (m *Member) DialEtcdGRPCServer(opts ...grpc.DialOption) (*grpc.ClientConn,
 			CertFile:      m.ClientCertPath,
 			KeyFile:       m.ClientKeyPath,
 			TrustedCAFile: m.ClientTrustedCAPath,
+
+			// TODO: remove this with generated certs
+			// only need it for auto TLS
+			InsecureSkipVerify: true,
 		}
 		tlsConfig, err := tlsInfo.ClientConfig()
 		if err != nil {
@@ -90,6 +94,10 @@ func (m *Member) CreateEtcdClient(opts ...grpc.DialOption) (*clientv3.Client, er
 			CertFile:      m.ClientCertPath,
 			KeyFile:       m.ClientKeyPath,
 			TrustedCAFile: m.ClientTrustedCAPath,
+
+			// TODO: remove this with generated certs
+			// only need it for auto TLS
+			InsecureSkipVerify: true,
 		}
 		tlsConfig, err := tlsInfo.ClientConfig()
 		if err != nil {