Sachin Gupta Sachin Gupta - 3 months ago 62
Ruby Question

gem sources -a not working also SSL error is therre

Not able to add any gem sources thus can't do gem install. See command output

Adding using failed, see output

C:\>gem sources -a
Error fetching
SSL_connect returned=1 errno=0 state=SSLv3 read server
certificate B: certificate verify failed

Adding using failed, see output

C:\>gem sources -a is recommended for security over

Do you want to add this insecure source? [yn] y
Error fetching
server did not return a valid file
( /specs.4.8.gz)

No Sources In System, See Command Output
C:>gem sources


gem 2.5.1 got installed due to MSI installer of ruby 2.3.1p112 on windows 10 x64 so we need to exclusively update gem version by gem install rubygems-update thereafter update_rubygems. This is available here