From 280fec2913e76a349809f9cfdc4e6b32024ce926 Mon Sep 17 00:00:00 2001 From: Daniel Kaffee Date: Tue, 28 Jul 2015 15:15:31 +0300 Subject: [PATCH] fix potential insecure skip verification bug --- physical/consul.go | 2 -- 1 file changed, 2 deletions(-) diff --git a/physical/consul.go b/physical/consul.go index a3c36d928..c65ccf2b1 100644 --- a/physical/consul.go +++ b/physical/consul.go @@ -104,8 +104,6 @@ func setupTLSConfig(conf map[string]string) (*tls.Config, error) { } tlsClientConfig.Certificates = []tls.Certificate{tlsCert} - } else { - tlsClientConfig.InsecureSkipVerify = true } caPool := x509.NewCertPool()