tag:help.rubygems.org,2010-01-19:/discussions/problems/11732-ssl-problems-with-rubygems-on-windowsRubyGems.org: Discussion 2015-04-22T19:45:33Ztag:help.rubygems.org,2010-01-19:Comment/298230202013-11-06T08:14:20Z2013-11-06T08:15:42ZSSL problems with RubyGems on Windows<div><p>Hello,</p>
<p>I'm starting a separate discussion because the SSL error seems
to appear on Windows more often than on other platforms.</p>
<p>While I'm not sure why this happens, would it help if a
<code>reset-ssl-certs</code> option were included into RubyGems?
This action would clean any cached SSL certificates and re-download
them from the source. Thoughts?</p>
<p>I'm receiving this error after running <code>bundle
update</code> on Windows (RubyGems v2.1.10).</p>
<p>Error trace:</p>
<pre>
<code>Gem::RemoteFetcher::FetchError: SSL_connect returned=1 errno=0 state=SSLv3 read server certificate B: certificate verify failed (https://rubygems.global.ssl.fastly.net/gems/aws-sdk-1.24.0.gem)
An error occurred while installing aws-sdk (1.24.0), and Bundler cannot continue.
Make sure that `gem install aws-sdk -v '1.24.0'` succeeds before bundling.</code>
</pre>
<p>Environment dump:</p>
<pre>
<code>RubyGems Environment:
- RUBYGEMS VERSION: 2.1.10
- RUBY VERSION: 2.0.0 (2013-06-27 patchlevel 247) [i386-mingw32]
- INSTALLATION DIRECTORY: C:/Ruby/Ruby200/lib/ruby/gems/2.0.0
- RUBY EXECUTABLE: C:/Ruby/Ruby200/bin/ruby.exe
- EXECUTABLE DIRECTORY: C:/Ruby/Ruby200/bin
- SPEC CACHE DIRECTORY: C:/Users/Tonci/.gem/specs
- RUBYGEMS PLATFORMS:
- ruby
- x86-mingw32
- GEM PATHS:
- C:/Ruby/Ruby200/lib/ruby/gems/2.0.0
- C:/Users/Tonci/.gem/ruby/2.0.0
- GEM CONFIGURATION:
- :update_sources =&gt; true
- :verbose =&gt; true
- :backtrace =&gt; false
- :bulk_threshold =&gt; 1000
- REMOTE SOURCES:
- https://rubygems.org/</code>
</pre></div>Tonci Damjanictag:help.rubygems.org,2010-01-19:Comment/298230202013-11-06T12:54:15Z2013-11-06T12:54:15ZSSL problems with RubyGems on Windows<div><p>Hello Tonci</p>
<p>Seems lot of people is getting this issue, and seems to be
related to the<br>
SSL certs.</p>
<p>Can you check this issue at GitHub?</p>
<p><a href=
"https://github.com/rubygems/rubygems/issues/704">https://github.com/rubygems/rubygems/issues/704</a></p>
<p>Try downloading curl's cacert.pem and then set SSL_CERT_FILE to
the full<br>
path of the file.</p>
<p>Example, with cacert.pem downloaded as
C:\Ruby200\cacert.pem:</p>
<p>C:&gt;SET SSL_CERT_FILE=C:\Ruby200\cacert.pem</p>
<p>And try gem installation again.</p></div>Luis Lavenatag:help.rubygems.org,2010-01-19:Comment/298230202013-11-16T13:13:55Z2013-11-16T13:14:37ZSSL problems with RubyGems on Windows<div><p>Luis,</p>
<p>Thanks for the reply. The problem seems to be intermittent,
because I haven't experienced the issue for the past week. I did
not install the custom PEM file on my computer.</p>
<p>Also, RubyGems v2.1.11 was released in the meantime, which
brought some certificate handling fixes. I'm not sure if that's
related to the Fastly.net certificate error.</p>
<p>I'll follow up here if the issue surfaces again.</p></div>Tonci Damjanictag:help.rubygems.org,2010-01-19:Comment/298230202013-11-16T15:56:17Z2013-11-16T15:56:17ZSSL problems with RubyGems on Windows<div><p>Hello,</p>
<p>I think both the cert and the following were related:</p>
<p><a href=
"https://twitter.com/rubygems_status/status/401107461328748544">https://twitter.com/rubygems_status/status/401107461328748544</a></p></div>Luis Lavenatag:help.rubygems.org,2010-01-19:Comment/298230202013-11-17T17:37:26Z2013-11-17T17:37:26ZSSL problems with RubyGems on Windows<div><p>Downloading new certificates should be done in securely, so if
the certificates in RubyGems are out of date any updates can't be
fetched.</p>
<p>Also, the certificates in RubyGems will only work on
RubyGems-related sites. You should have a complete set of
certificates for communicating with other SSL-protected sites.</p></div>Eric Hodeltag:help.rubygems.org,2010-01-19:Comment/298230202014-12-08T14:36:40Z2014-12-08T14:36:41ZSSL problems with RubyGems on Windows<div><p>I just set variable in system path on the Windows like said by
Luis Levana.</p></div>allan batistatag:help.rubygems.org,2010-01-19:Comment/298230202014-12-08T14:40:08Z2014-12-08T14:40:08ZSSL problems with RubyGems on Windows<div><p>This was addressed long ago.</p></div>Tonci Damjanictag:help.rubygems.org,2010-01-19:Comment/298230202014-12-08T14:48:34Z2014-12-08T14:48:34ZSSL problems with RubyGems on Windows<div><p>Atenciosamente,</p>
<p><em>Allan Batista.</em> Contato: +55 21 97991 0265<br>
Linkedin: <a href=
"http://www.linkedin.com/in/allanbatista">http://www.linkedin.com/in/allanbatista</a><br>
E-mail: <a href=
"mailto:allan@allanbatista.com.br">allan@allanbatista.com.br</a></p></div>Allan Batista