2

Ruby version is 2.5.1 and gem version is 2.7.7 both updated today. OpenSSL is 1.0.2 also updated today. When i run

gem install rails -v 5.2.0

I get the following error:

ERROR:  Could not find a valid gem 'rails' (= 5.2.0), here is why:
      Unable to download data from https://rubygems.org/ - Errno::ECONNRESET: Connection reset by peer - SSL_connect (https://api.rubygems.org/specs.4.8.gz)

I have checked all GitHub issues and none of them had a solution. I added certificates to keychain and to the openSSL folder and nothing has seemed to work. Any ideas?

I have also checked my router and computer firewalls

1 Answers1

1

Have a look at this question and try:

$ rvm -v
# rvm 1.19.1 (stable)
$ rvm osx-ssl-certs status all
# Certificates for...
$ rvm osx-ssl-certs update all
# Updating certificates...
Alex.U
  • 1,631
  • 2
  • 16
  • 26