(gcloud.auth.login) Invalid value for property [core/custom_ca_certs_file]

huangapple go评论46阅读模式
英文:

(gcloud.auth.login) Invalid value for property [core/custom_ca_certs_file]

问题

当我尝试使用 gdloud auth login 登录时,出现以下错误:

ERROR: (gcloud.auth.login) Invalid value for property [core/custom_ca_certs_file]: The provided path must exist.

我不确定问题是什么,因为几个小时前它还能正常工作。

我尝试搜索这个问题,但无法找到与确切错误相关的信息。

更新:

我删除了 gcloud 并安装了一个新的。现在 gcloud auth login 重定向我到浏览器,我能够在浏览器中成功验证。然而,在我的终端中,我收到以下错误:

ERROR: gcloud crashed (OSError): Could not find a suitable TLS CA certificate bundle, invalid path: /Users/Marcin.Kulik/combined_certs.pem

英文:

When I try to log in with gdloud auth login I get this error:

ERROR: (gcloud.auth.login) Invalid value for property [core/custom_ca_certs_file]: The provided path must exist.

I am not sure what is the problem as it was working a few hours ago.

I tried to google the issue but I cannot find anything on the exact error.

UPDATE:

I deleted gcloud and installed a new one.
Now gcloud auth login redirects me to my browser and I am able to successfully authenticate in the browser. However, in my terminal I get this error:

ERROR: gcloud crashed (OSError): Could not find a suitable TLS CA certificate bundle, invalid path: /Users/Marcin.Kulik/combined_certs.pem

答案1

得分: 2

如在我的更新中提到的,我重新安装了gcloud,但在尝试使用gcloud auth login登录时遇到了一个新错误:

ERROR: gcloud crashed (OSError): Could not find a suitable TLS CA certificate bundle, invalid path: /Users/Marcin.Kulik/combined_certs.pem

我在Mac上尝试了以下操作:

(security find-certificate -a -p ls /System/Library/Keychains/SystemRootCertificates.keychain && security find-certificate -a -p ls /Library/Keychains/System.keychain) > $HOME/.mac-ca-roots

然后,我在我的.zshrc文件中添加了export REQUESTS_CA_BUNDLE="$HOME/.mac-ca-roots",并重新启动了终端。

现在一切正常运行。

英文:

As mentioned in my update I reinstalled gcloud but was facing a new error when trying to login with gcloud auth login:

ERROR: gcloud crashed (OSError): Could not find a suitable TLS CA certificate bundle, invalid path: /Users/Marcin.Kulik/combined_certs.pem

I am on Mac so I tried:

(security find-certificate -a -p ls /System/Library/Keychains/SystemRootCertificates.keychain && security find-certificate -a -p ls /Library/Keychains/System.keychain) > $HOME/.mac-ca-roots

I added export REQUESTS_CA_BUNDLE="$HOME/.mac-ca-roots" to my .zshrc file and restarted terminal.

It is working fine now.

huangapple
  • 本文由 发表于 2023年2月23日 19:23:36
  • 转载请务必保留本文链接:https://go.coder-hub.com/75544154.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定