我的 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/