Hello,
I’d like to switch verify_incoming to true, however when I do this I found that commands such as “consul members” stop working. I cannot see how I am able to configure the cert, key, ca files to use with these commands. The help flags don’t list anything (consul members –help) and I cannot see anything on the documentation site.
$ consul --version
Consul v0.8.0
Protocol 2 spoken by default, understands 2 to 3 (agent will automatically use protocol >2 when speaking to compatible agents)
$ grep verify_incoming /etc/consul/consul.conf
"verify_incoming": true,
$ export CONSUL_HTTP_ADDR=example-server.example.com:8080
$ export CONSUL_HTTP_SSL=true
$ consul members
Error retrieving members: Get https://example-server.example.com:8080/v1/agent/members: remote error: tls: bad certificate
As far as I can tell the certificates and keys are ok as I am able to connect with openssl s_client and make queries.
$ /usr/bin/openssl s_client -CAfile /etc/pki/tls/certs/ca-bundle.crt -connect example-server:8080 -cert ./example-server.example.com.crt -key ./example-server.example.com.key
Are there some settings or environment variables I need to use to get commands such as consul members to work while using tls verify_incoming?
Cheers, Gavin