Created
February 17, 2015 12:35
-
-
Save pivanov/7e057f42499dffba6167 to your computer and use it in GitHub Desktop.
Fix error and get back to https with ssl
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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