title: SSL verification error when installing cocoapods
body: <p>What I did <code>sudo gem install cocoapods</code></p>
  <p>This is the full message from terminal</p>
  <pre><code>ERROR:  You must add /C=BE/O=GlobalSign nv-sa/CN=AlphaSSL CA - SHA256 - G2 to your local trusted store
  ERROR:  Could not find a valid gem 'cocoapods' (&gt;= 0), here is why:
            Unable to download data from https://rubygems.org/ - hostname &quot;rubygems.org&quot; does not match the server certificate (https://rubygems.org/specs.4.8.gz)
  ERROR:  SSL verification error at depth 0: unable to get local issuer certificate (20)
  </code></pre>
  <p>I have no experience with SSL but I followed a couple of question similar to mine but no luck</p>
  <p>What I've tried:</p>
  <ul>
  <li>Download and install the new SHA256 intermediate certificate</li>
  <li>Change hostname from https to http</li>
  <li>Follow this <a href="https://guides.rubygems.org/ssl-certificate-update/#manual-solution-to-ssl-issue" rel="noreferrer">guide</a> but couldn't copy GlobalSignRootCA.pem to ruby folder</li>
  <li>Use HomeBrew but got another error while installing it</li>
  </ul>