Skip to content

Instantly share code, notes, and snippets.

@ryanvgates
Created February 20, 2022 01:59
Show Gist options
  • Save ryanvgates/973c4bdc0f45d70f40265926963989d3 to your computer and use it in GitHub Desktop.
Save ryanvgates/973c4bdc0f45d70f40265926963989d3 to your computer and use it in GitHub Desktop.
Vault on Windows Gotcha - Solution
C:\Users\myuser\Downloads>set VAULT_ADDR=https://my-vault.instance:1234
C:\Users\myuser\Downloads>vault login -method=cert -client-cert=cert.pem -client-key=cert-key.pem
WARNING! The VAULT_TOKEN environment variable is set! This takes precedence
over the value set by this command. To use the value set by this command,
unset the VAULT_TOKEN environment variable or set it to the token displayed
below.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment