title: How to point consul-cli to HTTPS endpoint?
body: <p>How to point consul cli to HTTPS url?</p>
  <p>I tried the below ...</p>
  <pre class="lang-sh prettyprint-override"><code>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.
  )
  
  </code></pre>
  <p><a href="https://i.stack.imgur.com/P5NEj.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/P5NEj.png" alt="enter image description here" /></a></p>