macos - 由于 "unknown message digest algorithm",curl 无法访问 github.com

标签 macos curl ssl openssl osx-mavericks

我一整天都在尝试安装 RVM,但一直被 curl 挂断,它拒绝连接到 https://github.com .

这是我当前的错误:curl: (35) error:0D0890A1:asn1 encoding routines:ASN1_verify:unknown message digest algorithm

这是我使用详细标志时的日志输出:

* About to connect() to github.com port 443 (#0)
*   Trying 192.30.252.130...
* Adding handle: conn: 0x100805400
* Adding handle: send: 0
* Adding handle: recv: 0
* Curl_addHandleToPipeline: length: 1
* - Conn 0 (0x100805400) send_pipe: 1, recv_pipe: 0
* Connected to github.com (192.30.252.130) port 443 (#0)
* successfully set certificate verify locations:
*   CAfile: /System/Library/OpenSSL/certs/cacert.pem
    CApath: none
* SSLv3, TLS handshake, Client hello (1):
* SSLv3, TLS handshake, Server hello (2):
* SSLv3, TLS handshake, CERT (11):
* SSLv3, TLS alert, Server hello (2):
* error:0D0890A1:asn1 encoding routines:ASN1_verify:unknown message digest algorithm
* Closing connection 0

我使用的是运行 Mavericks (10.9.2) 的 2011 MacBook Pro。 Brew 说我的 curl 和 openssl 是最新的。

最初,curl 告诉我 github 没有正确的 SSL 证书,但我终于用这个命令解决了这个问题:export CURL_CA_BUNDLE="/System/Library/OpenSSL/certs/cacert. pem”

如有任何帮助,我们将不胜感激!

最佳答案

我有同样的错误;我尝试了“-k”选项,它起作用了。

关于macos - 由于 "unknown message digest algorithm",curl 无法访问 github.com,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/23282868/

相关文章:

c++ - 内存泄漏线

macos - Cocoa - 日期选择器控件

php - NGINX - 安装了 CURL 扩展,但系统说它丢失了

java高级休息客户端连接给出ssl错误

ios - Charles 代理 SSL 问题

linux - 如何对多个文件运行拼写检查并在 shell 脚本中显示任何不正确的单词?

mysql - 从外部主机获取动态数据 - 建立 mysql 连接或通过curl获取数据?

php - 关于 PHP CURL

c# - ASP.NET WebApi - 如何获得 "allow"而不是 "require"客户端证书?

macos - 如何在逻辑上测试 excel 中另一个单元格的格式