rvm / rvm

Ruby enVironment Manager (RVM)
https://rvm.io
Other
5.11k stars 1.03k forks source link

Cannot install 2.3.1 from new rvm install on mac #4294

Open kevinchugh opened 6 years ago

kevinchugh commented 6 years ago

Description

After a clean install of rvm (rvm implode, then reinstallation), the certificate issue exists and no published solution fixes the problem.

Steps to reproduce

rvm implode \curl -sSL https://get.rvm.io | bash -s stable rvm install ruby-2.3.1 gem install bundler

this triggers this output:

ERROR: SSL verification error at depth 2: certificate has expired (10) ERROR: Certificate /C=BE/O=GlobalSign nv-sa/OU=Root CA/CN=GlobalSign Root CA expired at 2014-01-28T12:00:00Z ERROR: SSL verification error at depth 2: certificate has expired (10) ERROR: Certificate /C=BE/O=GlobalSign nv-sa/OU=Root CA/CN=GlobalSign Root CA expired at 2014-01-28T12:00:00Z ERROR: SSL verification error at depth 2: certificate has expired (10) ERROR: Certificate /C=BE/O=GlobalSign nv-sa/OU=Root CA/CN=GlobalSign Root CA expired at 2014-01-28T12:00:00Z ERROR: Could not find a valid gem 'bundler' (>= 0), here is why: Unable to download data from https://rubygems.org/ - SSL_connect returned=1 errno=0 state=error: certificate verify failed (https://api.rubygems.org/specs.4.8.gz) ERROR: SSL verification error at depth 2: certificate has expired (10)

mac os

Expected behavior

expected bundler to install so i could bundle install

Actual behavior

certificate error

https://gist.github.com/kevinchugh/a1af620073ed05ef301a2d3ee5ce8e61

Debug mode:

Environment info

ruby-2.3.1:

system: uname: "Darwin Kevins-Macbook-Air.local 14.5.0 Darwin Kernel Version 14.5.0: Sun Jun 4 21:40:08 PDT 2017; root:xnu-2782.70.3~1/RELEASE_X86_64 x86_64" name: "OSX" version: "10.10" architecture: "x86_64" bash: "/bin/bash => GNU bash, version 3.2.57(1)-release (x86_64-apple-darwin14)" zsh: "/bin/zsh => zsh 5.0.5 (x86_64-apple-darwin14.0)" remote_path: "osx/10.10/x86_64"

rvm: version: "1.29.3 (master)" updated: "16 minutes 4 seconds ago" path: "/Users/kevin/.rvm" autolibs: "[4] Allow RVM to use package manager if found, install missing dependencies, install package manager (only OS X)."

ruby: interpreter: "ruby" version: "2.3.1p112" date: "2016-04-26" platform: "x86_64-darwin14" patchlevel: "2016-04-26 revision 54768" full_version: "ruby 2.3.1p112 (2016-04-26 revision 54768) [x86_64-darwin14]"

homes: gem: "/Users/kevin/.rvm/gems/ruby-2.3.1" ruby: "/Users/kevin/.rvm/rubies/ruby-2.3.1"

binaries: ruby: "/Users/kevin/.rvm/rubies/ruby-2.3.1/bin/ruby" irb: "/Users/kevin/.rvm/rubies/ruby-2.3.1/bin/irb" gem: "/Users/kevin/.rvm/rubies/ruby-2.3.1/bin/gem" rake: "/Users/kevin/.rvm/rubies/ruby-2.3.1/bin/rake"

environment: PATH: "/Users/kevin/.rvm/gems/ruby-2.3.1/bin:/Users/kevin/.rvm/gems/ruby-2.3.1@global/bin:/Users/kevin/.rvm/rubies/ruby-2.3.1/bin:/Users/kevin/.rvm/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/opt/X11/bin" GEM_HOME: "/Users/kevin/.rvm/gems/ruby-2.3.1" GEM_PATH: "/Users/kevin/.rvm/gems/ruby-2.3.1:/Users/kevin/.rvm/gems/ruby-2.3.1@global" MY_RUBY_HOME: "/Users/kevin/.rvm/rubies/ruby-2.3.1" IRBRC: "/Users/kevin/.rvm/rubies/ruby-2.3.1/.irbrc" RUBYOPT: "" gemset: ""

mpapis commented 6 years ago

try rvm rubygems latest-2.7

kevinchugh commented 6 years ago

No luck:

rvm rubygems latest-2.7
Rubygems 2.7.5 already available in installed ruby, skipping installation, use --force to reinstall.
Kevins-Macbook-Air:superior-default kevin$ 
Kevins-Macbook-Air:superior-default kevin$ bundle
The git source `git://github.com/rweng/jquery-datatables-rails.git` uses the `git` protocol, which transmits data without encryption. Disable this warning with `bundle config git.allow_insecure true`, or switch to the `https` protocol to keep your data secure.
Fetching source index from https://rubygems.org/

Retrying fetcher due to error (2/4): Bundler::Fetcher::CertificateFailureError Could not verify the SSL certificate for https://rubygems.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://rubygems.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://rubygems.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://rubygems.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'.
Kevins-Macbook-Air:superior-default kevin$ 
pkuczynski commented 6 years ago

Try:

rvm get master
rvm rubygems latest-2.7