OS X Yosemite Curl errors

為{幸葍}努か 提交于 2019-12-22 08:44:58

问题


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


回答1:


Turns out

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

was the problem for some reason. Removed that from my bash_profile and restarted a few times and everything works fine now.



来源:https://stackoverflow.com/questions/25613977/os-x-yosemite-curl-errors

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!