title: Errno::ECONNRESET (Connection reset by peer - SSL_connect) OpenSSL certificates? Ruby on Rails 2.3.15
body: <p>Hi all this is my first post so sorry if I do anything wrong.</p>
  
  <p>I am using <code>Ruby 1.8.7, Rails 2.3.15</code> on a <code>centOS 6.5 VPS with openssl 1.01e ruby-gems 1.8.25, mongrel_rails server</code>. My app needs to connect to an API using Net::HTTP over SSL with authentication. The key detail is everything was working perfectly and suddenly with no changes on my part I started getting:</p>
  
  <pre><code>Errno::ECONNRESET (Connection reset by peer - SSL_connect):&lt;br /&gt;
    /usr/lib/ruby/1.8/net/http.rb:586:in `connect'&lt;br /&gt;
    /usr/lib/ruby/1.8/net/http.rb:586:in `connect'&lt;br /&gt;
    /usr/lib/ruby/1.8/net/http.rb:553:in `do_start'&lt;br /&gt;
    /usr/lib/ruby/1.8/net/http.rb:542:in `start'&lt;br /&gt;
  </code></pre>
  
  <p>According to <a href="https://stackoverflow.com/questions/15966446/errnoeconnreset-connection-reset-by-peer-ssl-connect">Errno::ECONNRESET (Connection reset by peer - SSL_connect)</a> and a few other answers around the web I am led to believe my openSSL certificates are outdated (that is the only explanation I can imagine for why the problem started on previously working code). I read the linked article on fixing the openSSL certificates but it only addresses OSX, and some Ubuntu info, I am using CentOS 6.5 and not using RVM. Can anyone tell me how to reset the openSSL certificates that Ruby uses on a CentOS system (if that is even my problem)? I have been stuck on this for a few days with no progress.</p>
  
  <p>So far I have tried to reinstall OpenSSL using yum, reinstall ruby using /script/installruby, and I cannot update ruby gems past 1.8.25 or the server refuses to start.</p>