由于"未知消息摘要算法",Curl无法访问github.com

Ben*_*rth 7 macos ssl curl openssl osx-mavericks

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

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

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

* 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
Run Code Online (Sandbox Code Playgroud)

我正在使用MacBook Pro运行Mavericks(10.9.2).Brew说我的卷发和我的openssl是最新的.

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

任何帮助将不胜感激!

小智 10

我有同样的错误; 我尝试了"-k"选项并且它有效.


Ben*_*rth 4

我想到了。事实证明,我的环境没有使用系统curl,而是使用Anaconda版本的curl,该版本已经过时并且未链接到OSX 的钥匙串。我只是曾经conda remove curl摆脱它,现在一切似乎都工作正常。