mirror of
https://github.com/hashicorp/vault.git
synced 2026-05-04 20:06:27 +02:00
fix uninitialized tlsConfig in influxdb plugin (#10899)
This commit is contained in:
parent
f05499518b
commit
e715f63c0b
@ -168,7 +168,7 @@ func (i *influxdbConnectionProducer) createClient() (influx.Client, error) {
|
||||
}
|
||||
|
||||
if i.TLS {
|
||||
var tlsConfig *tls.Config
|
||||
tlsConfig := &tls.Config{}
|
||||
if len(i.certificate) > 0 || len(i.issuingCA) > 0 {
|
||||
if len(i.certificate) > 0 && len(i.privateKey) == 0 {
|
||||
return nil, fmt.Errorf("found certificate for TLS authentication but no private key")
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user