From 95a282efb5bf29da9d9f2829aa58f3f5a42ceb45 Mon Sep 17 00:00:00 2001 From: Mark Petrovic Date: Tue, 2 Oct 2018 08:40:01 -0700 Subject: [PATCH] benchmark: util.go allow client to setup TLS with cluster members, without the client having to offer TLS authentication itself fixes #10142 --- tools/benchmark/cmd/util.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/benchmark/cmd/util.go b/tools/benchmark/cmd/util.go index 04944a317..ba2c9a7ba 100644 --- a/tools/benchmark/cmd/util.go +++ b/tools/benchmark/cmd/util.go @@ -96,7 +96,7 @@ func mustCreateConn() *clientv3.Client { Endpoints: connEndpoints, DialTimeout: dialTimeout, } - if !tls.Empty() { + if !tls.Empty() || tls.TrustedCAFile != "" { cfgtls, err := tls.ClientConfig() if err != nil { fmt.Fprintf(os.Stderr, "bad tls config: %v\n", err)