- Published on
Vault Error: server gave HTTP response to HTTPS client
- Authors
- Name
- Yair Mark
- @yairmark
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 https://127.0.0.1:8200/v1/sys/seal-status: 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='http://127.0.0.1:8200'
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.