OS X Yosemite Curl错误 [英] OS X Yosemite Curl errors

查看:285
本文介绍了OS X Yosemite Curl错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图在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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆