2010-08-28 23 views
5

我在我的MacOS上安装了git 1.7.2.2和curl 7.21.1。我试图克隆像一个网址:使用git克隆https 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,但那也不起作用。

有什么想法?

回答

1

发现罪魁祸首

有一个名叫GIT_SSL_CERT一个环境变量,这是指出一个JKS。所以它覆盖了我所有的配置。