使用Hashi-Corp vault从Windows执行以下命令时出现以下错误。
创建客户端失败:解析“ http://127.0.0.1:8200”:URL中的第一个路径段不能包含冒号
C:\Softwares\vault_1.0.1_windows_amd64>set VAULT_TOKEN="00000000-0000-0000-0000-000000000000"
C:\Softwares\vault_1.0.1_windows_amd64>set VAULT_ADDR="http://127.0.0.1:8200"
C:\Softwares\vault_1.0.1_windows_amd64>vault auth enable approle
failed to create client: parse "http://127.0.0.1:8200": first path segment in URL cannot contain colon
如果我没有设置环境变量,那么我会收到以下错误。
C:\Softwares\vault_1.0.1_windows_amd64>vault auth enable approle
Error enabling approle auth: Post https://127.0.0.1:8200/v1/sys/auth/approle: http: server gave HTTP response to HTTPS client