Open Clasyc opened 1 year ago
У меня вот так заработало:
...
storage "consul" {
...
#ca_file = "/etc/consul.d/consul-agent-ca.pem"
#cert_file = "/etc/consul.d/velp-server-consul-0.pem"
#key_file = "/etc/consul.d/velp-server-consul-0-key.pem"
tls_ca_file = "/etc/vault.d/ssl/consul-agent-ca.pem"
tls_cert_file = "/etc/vault.d/ssl/dc1-client-consul-0.pem"
tls_key_file = "/etc/vault.d/ssl/dc1-client-consul-0-key.pem"
}
...
Describe the bug When using Vault with Consul as the storage backend over HTTPS, Vault continuously logs a
error. This error occurs despite correct configuration, and even when the certificates are verified manually using tools like
curl
, for example:It works just fine, but when I try to run the server, I get this:
To Reproduce
curl
verify the certificates successfully.Expected behavior Vault should successfully connect to Consul over HTTPS without any certificate verification errors, especially when the certificates have been verified to be correct.
Environment:
Vault server configuration file(s):
Additional context We verified that the certificates were correctly set up by successfully connecting to the Consul server using
curl
with the specified certificates. The error seems to be specific to Vault's interaction with Consul over HTTPS. Although I'm very very new on the HashiCorp stack, so I might be missing something simple?