Skip to content
This repository has been archived by the owner on Feb 8, 2023. It is now read-only.

https是否过期? #62

Closed
graysonchen opened this issue Apr 22, 2016 · 11 comments
Closed

https是否过期? #62

graysonchen opened this issue Apr 22, 2016 · 11 comments

Comments

@graysonchen
Copy link

graysonchen commented Apr 22, 2016

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

@Xenofex
Copy link

Xenofex commented Apr 22, 2016

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

@zl810881283
Copy link

相同问题,求尽快解决

@cui-liqiang
Copy link

问题已经解决

@graysonchen
Copy link
Author

Thanks! cool.

@unifreak
Copy link

image

应该是同样的原因

@FGFW
Copy link

FGFW commented May 6, 2016

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

@Tommassissimo
Copy link

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

@fishermancome
Copy link

现在好像还没解决

@JonyFang
Copy link

JonyFang commented Dec 11, 2016

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

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

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

source 'https://rubygems.org/'

@JonyFang
Copy link

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

@songzy12
Copy link

当前应该使用

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests