git - SSL : Can't find the certificate "" and its private key in the 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.

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/

相关文章:

iphone - 帮助使用 SFHFKeychainUtils

java - 在 iOS 上生成匹配的 RSAPublicKey 以匹配来自 Android 的共享 RSAPublicKey(或组件)

git - 如何查看上次提交中更改了哪些文件

objective-c - SecCertificateAddToKeychain - 导入中的格式未知

git - 从几次非后续提交中获取结果更改

bash - Git 在 MacOS Catalina : "xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing" 上不工作

ios - 在开发者帐户迁移期间保留钥匙串(keychain)数据

ios - 用于访问 iOS 钥匙串(keychain)密码的 errSecDefault

git - 如何在没有整个分支的情况下仅对最后两次提交进行 rebase ?

git - 如果它们密切相关,将单独的项目保存在同一个存储库中是一个好主意吗?