我一整天都在尝试安装 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/