如何将 consul-cli 指向 HTTPS 端点?

How to point consul-cli to HTTPS endpoint?

如何将 consul cli 指向 HTTPS url?

我尝试了以下...

export CONSUL_HTTP_ADDR=127.0.0.1:8501
consul members                        
Error retrieving members: Unexpected response code: 400 (Client sent an HTTP request to an HTTPS server.
)

啊..

export CONSUL_HTTP_SSL=true
consul members             
Node            Address             Status  Type    Build   Protocol  DC   Segment
myhostname      192.168.2.198:8301  alive   server  1.10.4  2         dc1  <all>