4

I am trying to use curl on Yosemite and I keep getting the following errors:

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)

I know I can add -k to the curl to make it download, but I think there is something bigger that I need to fix. The biggest issue is when trying to update Homebrew packages.

I also have this in my bash_profile

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

and i just downloaded the ca-bundle.crt from http://curl.haxx.se/docs/caextract.html

EDIT: Also on a the guest user account on my laptop the curl works fine

4

1 回答 1

4

原来

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

是出于某种原因的问题。从我的 bash_profile 中删除了它并重新启动了几次,现在一切正常。

于 2014-09-02T11:52:30.960 回答