× {{alert.msg}} Never ask again
Get notified about new tutorials RECEIVE NEW TUTORIALS

Handling ssl errors on windows when installing gems

Innocent Amadi
Dec 11, 2016
<p>When installing ruby gems on windows, you may come across an error like this:</p> <pre><code>C:\WINDOWS\system32&gt;gem update --system ERROR: While executing gem ... (Gem::RemoteFetcher::FetchError) SSL_connect returned=1 errno=0 state=SSLv3 read server certificate B: certif icate verify failed (https://api.rubygems.org/specs.4.8.gz)</code></pre> <p> </p> <p>One easy way to get out of this `ssl_cert` error is to switch gem sources from `https` to `http`. So on the command line, set this source globally by running:</p> <p> </p> <div style="background:#eee;border:1px solid #ccc;padding:5px 10px;">gem sources -a http://rubygems.org</div> <p> </p> <p>And for a specific project, add to the top of the gemfile:</p> <p> </p> <div style="background:#eee;border:1px solid #ccc;padding:5px 10px;">source http://rubygems.org</div>
comments powered by Disqus