Published on

Vault Error: server gave HTTP response to HTTPS client


I was working with Vault today and whenever I tried to run something via the CLI tool I received the following type of error:

>vault status
Error checking seal status: Get http: server gave HTTP response to HTTPS client

This was happening for any commands I ran. After a bit of Googling and checking with a colleague who had worked with Vault before it turns out you need to specify an environment variable that indicates what host and port Vault is running on:

export VAULT_ADDR=''

As I was running commands against Vault on the machine where it was hosted the above address worked correctly and my cli commands ran without issues after that.