新手问题 运行 gem 提示 certificate verify failed

yakczh · July 23, 2015 · Last by qhwa replied at July 23, 2015 · 2725 hits

ERROR: Could not find a valid gem 'xxx' (>= 0), here is why: Unable to download data from https://rubygems.org/ - SSL_connect retur ned=1 errno=0 state=SSLv3 read server certificate B: certificate verify failed ( https://api.rubygems.org/latest_specs.4.8.gz)

Error fetching http://ruby.taobao.org: bad response Gateway Time-out 504 (http://ruby.taobao.org/specs.4.8.gz)

#2 楼 @tablecell 504 也可能是你的网络状况不好引起的

正常情况下这个请求会 302 跳转到阿里云 OSS

curl http://ruby.taobao.org/specs.4.8.gz -I
HTTP/1.1 302 Moved Temporarily
Server: nginx/1.4.7
Date: Thu, 23 Jul 2015 07:36:23 GMT
Content-Type: text/html
Content-Length: 160
Connection: keep-alive
Location: http://rubygems-china.oss.aliyuncs.com/specs.4.8.gz
You need to Sign in before reply, if you don't have an account, please Sign up first.