2014-09-01 101 views
4

我試圖在優勝美地使用捲曲和我不斷收到以下錯誤:OS X的優勝美地捲曲的錯誤

01-09-14 17:49:45> curl https://www.kernel.org/pub/software/scm/git/git-manpages-2.1.0.tar.gz 
curl: (51) SSL: certificate verification failed (result: 5) 

我知道我可以添加-k的捲曲,使其下載,但我覺得這是我需要修復的東西更大。最大的問題是嘗試更新自制軟件包時。

我也有這個在我的.bash_profile

export CURL_CA_BUNDLE=/usr/local/share/ca-bundle.crt 

,我只是從網上下載http://curl.haxx.se/docs/caextract.html

編輯CA-bundle.crt:也對我的筆記本電腦來賓用戶帳戶捲曲工作正常

回答

4

原來

export CURL_CA_BUNDLE=/usr/local/share/ca-bundle.crt 

是爲索姆問題原因。從我的bash_profile中刪除並重新啓動幾次,現在一切正常。

+1

我有同樣的問題,但沒有在我的'〜/ .bash_profile'中的那一行,所以我有點困惑。經過挖掘,發現該行在'〜/ .nix-profile/etc/profile.d/nix.sh'中,[Nix Package Manager](http://nixos.org/nix/)添加到'〜/ .bash_profile'中,以便它可以使用curl的自定義版本。 – 2016-06-25 20:53:38