mirror of
https://github.com/hashicorp/vault.git
synced 2026-02-18 18:38:08 -05:00
Add additional check for consul storage backend TLS options (#8084)
This commit is contained in:
parent
a07684e1b2
commit
3a4989c53b
1 changed files with 2 additions and 0 deletions
|
|
@ -267,6 +267,8 @@ func setupTLSConfig(conf map[string]string, address string) (*tls.Config, error)
|
|||
}
|
||||
|
||||
tlsClientConfig.Certificates = []tls.Certificate{tlsCert}
|
||||
} else if okCert || okKey {
|
||||
return nil, fmt.Errorf("both tls_cert_file and tls_key_file must be provided")
|
||||
}
|
||||
|
||||
if tlsCaFile, ok := conf["tls_ca_file"]; ok {
|
||||
|
|
|
|||
Loading…
Reference in a new issue