Skip to content

Instantly share code, notes, and snippets.

@pivanov
Created February 17, 2015 12:35
Show Gist options
  • Save pivanov/7e057f42499dffba6167 to your computer and use it in GitHub Desktop.
Save pivanov/7e057f42499dffba6167 to your computer and use it in GitHub Desktop.
Fix error and get back to https with ssl
#The reason is old rubygems.
#So we need to remove ssl source to be able to update gem --system which includes rubygems and so on.
#After this we can feel free to get back to ssl source.
#to temporarily remove secure connection
gem sources -r https://rubygems.org/
#add insecure connection
gem sources -a http://rubygems.org/
#now we're able to update rubygems without SSL
gem update --system
#to remove insecure connection
gem sources -r http://rubygems.org/
#add secure connection
gem sources -a https://rubygems.org/
#Now you're able to update gems using secure connection.
gem update
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment