Error authenticating: error looking up token: Get https://127.0.0.1:8200/v1/auth/token/lookup-self: x509: cannot validate certificate for 127.0.0.1 because it doesn’t contain any IP SANs

Today I’m working on a vault demo and I just create a vault server on GKE. when I try to log into vault. I was getting the following error.

Error authenticating: error looking up token: Get https://127.0.0.1:8200/v1/auth/token/lookup-self: x509: cannot validate certificate for 127.0.0.1 because it doesn't contain any IP SANs

The actual fix is quick simple and straight. Just need to specify the environmental variable as below:

export VAULT_SKIP_VERIFY=true