After I login to my Vault with TLS authentication
vault login -method=cert \
-ca-cert=/path/to/ca/cert \
-client-cert=/path/to/client/cert \
-client-key=/path/to/client/key
I would expect the returned token to be updated at ~/.vault-token
. However it is not. For instance, running $ vault status
returns
x509: certificate signed by unknown authority
I can work around this by adding -ca-cert=path/to/ca/cert
to every subsequent requests but it is not ideal. Any idea what is causing this?