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