title: Gem::RemoteFetcher::FetchError: SSL_connect returned=1 errno=0 state=SSLv3 read
body: <p>I am trying to install ruby on rails but I keep on getting so many errors when I am trying to create an application.</p>
  
  <p>Here is what I did on my Windows machine:</p>
  
  <p>1) Downloaded <code>railsinstaller-3.0.0.exe</code> software
  2) Installed Rails on my machine.
  3) Verified that installation is successful:</p>
  
  <blockquote>
    <p>E:\Rails>ruby -v ruby 2.0.0p598 (2014-11-13) [i386-mingw32]</p>
    
    <p>E:\Rails>sqlite3 --version
    3.8.7.2 2014-11-18 20:57:56 2ab564bf9655b7c7b97ab85cafc8a48329b27f93</p>
    
    <p>E:\Rails>rails -v DL is deprecated, please use Fiddle Rails 4.1.8</p>
  </blockquote>
  
  <p>Now when I am trying to create an application I am getting below exception:</p>
  
  <p>Command used is: <code>rails new blog</code></p>
  
  <pre><code>         run  bundle install
  DL is deprecated, please use Fiddle
  Fetching gem metadata from https://rubygems.org/...........
  Fetching additional metadata from https://rubygems.org/..
  Resolving dependencies...
  
  Gem::RemoteFetcher::FetchError: SSL_connect returned=1 errno=0 state=SSLv3 read server certificate B: certificate verify failed (https://rubygems.org/gems/rake-10.4.2.gem)
  An error occurred while installing rake (10.4.2), and Bundler cannot continue.
  Make sure that `gem install rake -v '10.4.2'` succeeds before bundling.
  </code></pre>
  
  <p>Now I tried to run this command - <code>gem install rake -v '10.4.2'</code>, I started getting below error now:</p>
  
  <pre><code>E:\Rails&gt;gem install rake -v '10.4.2'
  ERROR:  Could not find a valid gem 'rake' (= 10.4.2), 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://rubygems.org/specs.4.8.gz)
  </code></pre>
  
  <p>I am completely stuck here, can you please tell where I am making mistake in this installation? I tried various options given in SO but I am failing all the times.</p>
  
  <p>If I try to start the server then I am getting below exception:</p>
  
  <pre><code>E:\Rails&gt; cd blog
  E:\Rails\blog&gt;rails server
  Could not find gem 'tzinfo-data (&gt;= 0) x86-mingw32' in the gems available on this machine.
  Run `bundle install` to install missing gems.
  </code></pre>
  
  <p>Now if I run <code>bundle install</code> I am getting new error:</p>
  
  <pre><code>E:\Rails\blog&gt;bundle install
  DL is deprecated, please use Fiddle
  Fetching gem metadata from https://rubygems.org/...........
  Fetching additional metadata from https://rubygems.org/..
  Resolving dependencies...
  
  Gem::RemoteFetcher::FetchError: SSL_connect returned=1 errno=0 state=SSLv3 read server certificate B: certificate verify failed (https://rubygems.org/gems/rake-10.4.2.gem)
  An error occurred while installing rake (10.4.2), and Bundler cannot continue.
  Make sure that `gem install rake -v '10.4.2'` succeeds before bundling.
  </code></pre>
  
  <p>Again if I try to install rake I am getting new exception:</p>
  
  <pre><code>E:\Rails\blog&gt;gem install rake -v '10.4.2'
  ERROR:  Could not find a valid gem 'rake' (= 10.4.2), 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://rubygems.org/specs.4.8.gz)
  </code></pre>
  
  <p>I am trying this for the past 2 days, but still I a not able to understand where I am doing mistake in installation.</p>