title: Error: Could not find a valid gem installing rails on mac
body: <p>I am trying to install rails version <code>5.0.0.1</code> using the command below</p>
  
  <pre><code>gem install rails -v 5.0.0.1
  </code></pre>
  
  <p>but I get this error</p>
  
  <pre><code>ERROR:  Could not find a valid gem 'rails' (= 5.0.0.1), here is why:
          Unable to download data from https://rubygems.org/ - SSL_connect returned=1 errno=0 state=SSLv3 read server certificate B: certificate verify failed (https://api.rubygems.org/specs.4.8.gz)
  </code></pre>
  
  <p>How can I get past this error and install rails version 5.0.0.1</p>