尝试通过 https 从 github 克隆时出现以下错误。
fatal: unable to access 'https://github.com/<any-github-repo>.git/': SSL: Can't find the
certificate "" and its private key in the Keychain.
git+ssh 确实可以继续工作,但在某些情况下我需要能够使用 https,例如运行 brew update
时。
我的证书只是""
。我拥有的每个其他示例都至少指定了它正在查找哪个证书,这有助于推断问题所在。
有人知道证书 ""
可能是什么吗?或者如何最好地解决这个问题?
最佳答案
我已经找到问题的根源了。我有一个 github 配置文件 ~/.gitconfig
在那里我找到了这一行
[http]
sslCert =
sslVerify = false
sslCert =
是定义 ""
的位置。我已经删除了 [http]
部分,现在它可以工作了。
关于git - SSL : Can't find the certificate "" and its private key in the Keychain,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/42088895/