title: Cocoapods installation. Connection reset by peer - SSL_connect
body: <p>I have run:</p>
  
  <blockquote>
    <p>$ sudo gem install cocoapods</p>
  </blockquote>
  
  <p>and I get the following output: </p>
  
  <blockquote>
    <p>ERROR:  While executing gem ... (Gem::RemoteFetcher::FetchError)
        Errno::ECONNRESET: Connection reset by peer - SSL_connect (<a href="https://api.rubygems.org/quick/Marshal.4.8/cocoapods-0.36.4.gemspec.rz" rel="nofollow noreferrer">https://api.rubygems.org/quick/Marshal.4.8/cocoapods-0.36.4.gemspec.rz</a>)</p>
  </blockquote>
  
  <p>I already ran this command:  </p>
  
  <blockquote>
    <p>sudo gem update --system</p>
  </blockquote>
  
  <p><img src="https://i.stack.imgur.com/WgALW.png" alt="gem update command"></p>