git - 使用 git 克隆 https url 时出现证书问题

标签 git curl

我的 MacOS 上有 git 版本 1.7.2.2 和 curl 7.21.1。我正在尝试克隆一个 url,例如:

git clone https:// repositories.mydomain.com/myproject/myproject.git myproject

但是得到,

error: unable to use client certificate (no key found or wrong pass phrase?) while accessing https://repositories.mydomain.com/myproject/myproject.git/info/refs

我试过了

git config --global http.sslVerify false

忽略 SSL,但这没有用。我还将 CA 证书放入/opt/local/share/curl/curl-ca-bundle.crt 但这也不起作用。

有什么想法吗?

最佳答案

找到了罪魁祸首

有一个名为 GIT_SSL_CERT 的环境变量指向一个 jks。所以它覆盖了我所有的配置。

关于git - 使用 git 克隆 https url 时出现证书问题,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/3590215/

相关文章:

python - Curl 到 Python 请求 - Json

php - 使用 cURL 将商品添加到 Shopify 购物车

ruby-on-rails - 如何使用 ruby​​-git gem 在 SSH key 之间切换?

php - 如何知道访问 token 是否在 Google Api PHP 中过期

git - Jenkins git推送多个分支

python - 无法将 python 代码部署到 heroku

PHP。将请求按原样转发到另一台服务器

rest - 通过Curl的OpenId

git - 如何删除某个主题 Git 分支的所有提交?

GitLab:有没有办法保护分支不受命令行影响?