OS X Yosemite Curl错误 [英] OS X Yosemite Curl errors
问题描述
我试图在Yosemite上使用curl,并且一直遇到以下错误:
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)
我知道我可以添加 -k
curl让它下载,但我想有一些更大的,我需要解决。最大的问题是尝试更新Homebrew包时。
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.
我也在我的bash_profile中有这个
I also have this in my bash_profile
export CURL_CA_BUNDLE=/usr/local/share/ca-bundle.crt
我刚从 http://curl.haxx.se/docs下载了ca-bundle.crt /caextract.html
编辑:同样在我的笔记本电脑上的访客用户帐户上curl工作正常
Also on a the guest user account on my laptop the curl works fine
推荐答案
导出
export CURL_CA_BUNDLE=/usr/local/share/ca-bundle.crt
是出于某种原因的问题。从我的bash_profile中删除,重新启动几次,一切工作正常。
was the problem for some reason. Removed that from my bash_profile and restarted a few times and everything works fine now.
这篇关于OS X Yosemite Curl错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!