Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/git/21.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Git SSL:Can';“找不到证书”&引用;以及钥匙链中的私钥_Git_Keychain - Fatal编程技术网

Git SSL:Can';“找不到证书”&引用;以及钥匙链中的私钥

Git SSL:Can';“找不到证书”&引用;以及钥匙链中的私钥,git,keychain,Git,Keychain,我在尝试通过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. 致命:无法访问'https://github.com/.git/“:SSL:找不到 证书“”及其密钥链中的私钥。 git+ssh确实可以继续工作,

我在尝试通过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.
致命:无法访问'https://github.com/.git/“:SSL:找不到
证书“”及其密钥链中的私钥。
git+ssh确实可以继续工作,但在某些情况下,我需要能够使用https,例如在运行
brew update

我知道证书的位置仅为
。我所拥有的每一个示例都至少指定了它正在寻找的证书,这有助于推断问题所在


有人知道什么是证书吗?或者如何最好地解决这个问题?

我找到了问题的根源。我在
~/.gitconfig

在那里我找到了这条线

[http]
    sslCert =
    sslVerify = false
sslCert=
是定义
的地方。我已经删除了
[http]
部分,现在它可以工作了