macos – 由于“未知消息摘要算法”,Curl无法访问github.com

前端之家收集整理的这篇文章主要介绍了macos – 由于“未知消息摘要算法”,Curl无法访问github.com前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
我一直在尝试整天安装RVM,而且我一直都被curl挂断了,因为curl拒绝连接到 https://github.com.

这是我当前的错误:curl:(35)错误:0D0890A1:asn1编码例程:ASN1_verify:未知消息摘要算法

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

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

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

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

任何帮助将不胜感激!

解决方法

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

猜你在找的Linux相关文章