2010-08-28 98 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。所以它覆蓋了我所有的配置。