安装Ruby 2.3.1 x64后,由于SSL错误,我无法在Win10上安装任何Gems。我在网上发现了很多关于如何修复的文章,但没有一篇能奏效。真相的来源在哪里!
C:\Users\djangofan>gem install rubygems-update
ERROR: Could not find a valid gem 'rubygems-update' (>= 0), here is why:
Unable to download data from https://rubygems.org/ - SSL_connect returned=1
errno=0 state=SSLv3 read server certificate B: certificate verify failed
(https://api.rubygems.org/specs.4.8.gz)
我有连接:
C:\Users\djangofan>ping rubygems.org
Pinging rubygems.org [151.101.128.70] with 32 bytes of data:
Reply from 151.101.128.70: bytes=32 time=17ms TTL=58
答案 0 :(得分:1)
当连接到rubygems.org时,我可以通过将我的源设置为http而不是https来使其工作。在命令提示符中:
> gem sources -r https://rubygems.org -a http://rubygems.org
我尝试手动设置安全证书(来自How to use SSL_CERT_FILE for OpenSSL Windows (OpenSSL 1.0.1c)),但这对我不起作用。