macos - OS X Yosemite curl 错误

标签 macos curl ssl osx-yosemite

我正在尝试在 Yosemite 上使用 curl,但我不断收到以下错误:

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 包时。

我的 bash_profile 中也有这个

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

我刚刚从 http://curl.haxx.se/docs/caextract.html 下载了 ca-bundle.crt

编辑:同样在我笔记本电脑上的访客用户帐户上,curl 工作正常

最佳答案

结果

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

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

关于macos - OS X Yosemite curl 错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/25613977/

相关文章:

PHP cURL 登录 facebook

security - 为什么相互 SSL 需要客户端的 key 对而不仅仅是公共(public)证书?

php imap_open 给出连接问题

macos - OSX - Dyld 错误消息 : Library not loaded

c - mac 的 win32 等价物是什么?

objective-c - NS用户默认值 : Updating data in plist

curl - 获取 401 未经授权 : "Failed to validate oauth signature and token" when running cURL command produced by oauth tool

Qt 中的 cocoa 纹理窗口

php - PHP cURL 和 SSL 的奇怪超时

azure - https kubernetes 部署的应用程序