Unable to download data from https://rubygems.org/ - SSL_connect returned=1 errno=0 state=SSLv3 read server certificate B: certificate verify failed (https://api.rubygems.org/specs.4.8.gz)
Error:
Unable to download data from https://rubygems.org/ - SSL_connect returned=1 errno=0 state=SSLv3 read server certificate B: certificate verify failed (https://api.rubygems.org/specs.4.8.gz)
Why?
You have problems with your configuration.
In my case I have ruby 2.2.2p95
How to Fix it?
- You can download and reinstall ruby (I know that you probably already did it or you don't want to do it).
- A workaround could be to append "--source http://rubygems.org" to your command line.
gem install bundler --source http://rubygems.org
- manually update ruby to the latest version. (easy to do)
Example:
wget https://rubygems.org/downloads/rubygems-update-2.6.7.gem
gem install --local rubygems-update-2.6.7.gem
update_rubygems --no-ri --no-rdoc
Now your ruby should work again.
Comments
Post a Comment