diff --git a/storage/kv/consul.go b/storage/kv/consul.go index 0704177878b..b16a9515696 100644 --- a/storage/kv/consul.go +++ b/storage/kv/consul.go @@ -72,6 +72,14 @@ func newConsul(conf config.ConsulConfig) (Store, error) { defaultCfg.TLSConfig.CertFile = conf.TLSConfig.CertFile } + if conf.TLSConfig.KeyFile != "" { + defaultCfg.TLSConfig.KeyFile = conf.TLSConfig.KeyFile + } + + if conf.TLSConfig.CAPath != "" { + defaultCfg.TLSConfig.CAPath = conf.TLSConfig.CAPath + } + if conf.TLSConfig.CAFile != "" { defaultCfg.TLSConfig.CAFile = conf.TLSConfig.CAFile }