alibaba-archive/ruby.taobao.org

https是否过期?

graysonchen opened this issue · 11 comments

hi all.
https是否过期?

Fetching source index from https://ruby.taobao.org/
Retrying fetcher due to error (2/4): Bundler::Fetcher::CertificateFailureError Could not verify the SSL certificate for https://ruby.taobao.org/.
There is a chance you are experiencing a man-in-the-middle attack, but most likely your system doesn't have the CA certificates needed for verification. For information about OpenSSL certificates, see http://bit.ly/ruby-ssl. To connect without using SSL, edit your Gemfile sources and change 'https' to 'http'.
Retrying fetcher due to error (3/4): Bundler::Fetcher::CertificateFailureError Could not verify the SSL certificate for https://ruby.taobao.org/.
There is a chance you are experiencing a man-in-the-middle attack, but most likely your system doesn't have the CA certificates needed for verification. For information about OpenSSL certificates, see http://bit.ly/ruby-ssl. To connect without using SSL, edit your Gemfile sources and change 'https' to 'http'.
Retrying fetcher due to error (4/4): Bundler::Fetcher::CertificateFailureError Could not verify the SSL certificate for https://ruby.taobao.org/.
There is a chance you are experiencing a man-in-the-middle attack, but most likely your system doesn't have the CA certificates needed for verification. For information about OpenSSL certificates, see http://bit.ly/ruby-ssl. To connect without using SSL, edit your Gemfile sources and change 'https' to 'http'.
Could not verify the SSL certificate for https://ruby.taobao.org/.
There is a chance you are experiencing a man-in-the-middle attack, but most likely your system doesn't have the CA certificates needed for
verification. For information about OpenSSL certificates, see http://bit.ly/ruby-ssl. To connect without using SSL, edit your Gemfile
sources and change 'https' to 'http'.

h6x7rpt59st4 2fswzild s

相同的问题,证书已经过期了没法更新

相同问题,求尽快解决

问题已经解决

Thanks! cool.

image

应该是同样的原因

FGFW commented

网上已经有人碰到与楼上同样的问题了。

还是存在证书问题,更新openssl证书也没解决。

现在好像还没解决

修改下 Bundler 的 Gem 源代码镜像,执行如下命令即可

$ bundle config mirror.https://rubygems.org https://gems.ruby-china.org

这样你不用再去改 Gemfile 的 source 了

source 'https://rubygems.org/'

RubyGems 镜像的管理已经交由 Ruby China 负责了,需要切换下原先的 source

$ gem sources --add https://gems.ruby-china.org/ --remove https://rubygems.org/

执行完,校验下 source 是否切换过来了,就可以了

$ gem sources -l
*** CURRENT SOURCES ***

https://gems.ruby-china.org

当前应该使用

bundle config mirror.https://rubygems.org https://gems.ruby-china.com