title: Cannot install anything with brew, Error: Failed to download resource "git--html"
body: <p>Whenever I try and run <code>brew install &lt;app&gt;</code>, such as <code>brew install git</code>, i get the following error:</p>
  <pre><code>$ brew install git
  Updating Homebrew...
  Warning: You are using macOS 10.10.
  We (and Apple) do not provide support for this old version.
  You will encounter build failures with some formulae.
  Please create pull requests instead of asking for help on Homebrew's GitHub,
  Discourse, Twitter or IRC. You are responsible for resolving any issues you
  experience while you are running this old version.
  
  ==&gt; Downloading https://ftp.gnu.org/gnu/gettext/gettext-0.21.tar.xz
  Already downloaded: /Users/admin/Library/Caches/Homebrew/downloads/fbd8967fd8256b2e1856b74e8ff0f3d8371cb652c5768e47649613a69d4dc841--gettext-0.21.tar.xz
  ==&gt; Downloading https://ftp.pcre.org/pub/pcre/pcre2-10.35.tar.bz2
  Already downloaded: /Users/admin/Library/Caches/Homebrew/downloads/48997c77a7dae2fb85d52234e92e9032019609e091e23d72529d1e552978a260--pcre2-10.35.tar.bz2
  ==&gt; Downloading https://mirrors.edge.kernel.org/pub/software/scm/git/git-htmldoc
  
  curl: (60) SSL certificate problem: Invalid certificate chain
  More details here: http://curl.haxx.se/docs/sslcerts.html
  
  curl performs SSL certificate verification by default, using a &quot;bundle&quot;
   of Certificate Authority (CA) public keys (CA certs). If the default
   bundle file isn't adequate, you can specify an alternate file
   using the --cacert option.
  If this HTTPS server uses a certificate signed by a CA represented in
   the bundle, the certificate verification probably failed due to a
   problem with the certificate (it might be expired, or the name might
   not match the domain name in the URL).
  If you'd like to turn off curl's verification of the certificate, use
   the -k (or --insecure) option.
  Error: Failed to download resource &quot;git--html&quot;
  Download failed: https://mirrors.edge.kernel.org/pub/software/scm/git/git-htmldocs-2.28.0.tar.xz
  Warning: You are using macOS 10.10.
  We (and Apple) do not provide support for this old version.
  You will encounter build failures with some formulae.
  Please create pull requests instead of asking for help on Homebrew's GitHub,
  Discourse, Twitter or IRC. You are responsible for resolving any issues you
  experience while you are running this old version.
  
  ==&gt; Downloading https://ftp.gnu.org/gnu/gettext/gettext-0.21.tar.xz
  Already downloaded: /Users/admin/Library/Caches/Homebrew/downloads/fbd8967fd8256b2e1856b74e8ff0f3d8371cb652c5768e47649613a69d4dc841--gettext-0.21.tar.xz
  ==&gt; Downloading https://ftp.pcre.org/pub/pcre/pcre2-10.35.tar.bz2
  Already downloaded: /Users/admin/Library/Caches/Homebrew/downloads/48997c77a7dae2fb85d52234e92e9032019609e091e23d72529d1e552978a260--pcre2-10.35.tar.bz2
  ==&gt; Downloading https://mirrors.edge.kernel.org/pub/software/scm/git/git-htmldoc
  
  curl: (60) SSL certificate problem: Invalid certificate chain
  More details here: http://curl.haxx.se/docs/sslcerts.html
  
  curl performs SSL certificate verification by default, using a &quot;bundle&quot;
   of Certificate Authority (CA) public keys (CA certs). If the default
   bundle file isn't adequate, you can specify an alternate file
   using the --cacert option.
  If this HTTPS server uses a certificate signed by a CA represented in
   the bundle, the certificate verification probably failed due to a
   problem with the certificate (it might be expired, or the name might
   not match the domain name in the URL).
  If you'd like to turn off curl's verification of the certificate, use
   the -k (or --insecure) option.
  Error: Failed to download resource &quot;git--html&quot;
  Download failed: https://mirrors.edge.kernel.org/pub/software/scm/git/git-htmldocs-2.28.0.tar.xz
  </code></pre>
  <p>I have tried the answers to <a href="https://stackoverflow.com/questions/18964175/how-to-fix-curl-60-ssl-certificate-invalid-certificate-chain">this post</a> and have had no luck. I also prefer not to use curl's -k or --insecure</p>
  <p>I am using</p>
  <ul>
  <li>OSX Yosemite 10.10.5</li>
  <li>Homebrew 2.4.9</li>
  <li>rvm 1.29.10</li>
  <li>ruby 2.0.0</li>
  </ul>
  <p><strong>Update:</strong> I tried uninstalling and reinstalling homebrew, and on the reinstall I got this message again:</p>
  <pre><code>curl: (60) SSL certificate problem: Invalid certificate chain
  More details here: http://curl.haxx.se/docs/sslcerts.html
  
  curl performs SSL certificate verification by default, using a &quot;bundle&quot;
   of Certificate Authority (CA) public keys (CA certs). If the default
   bundle file isn't adequate, you can specify an alternate file
   using the --cacert option.
  If this HTTPS server uses a certificate signed by a CA represented in
   the bundle, the certificate verification probably failed due to a
   problem with the certificate (it might be expired, or the name might
   not match the domain name in the URL).
  If you'd like to turn off curl's verification of the certificate, use
   the -k (or --insecure) option.
  Error: Failed to download resource &quot;git--html&quot;
  Download failed: https://mirrors.edge.kernel.org/pub/software/scm/git/git-htmldocs-2.28.0.tar.xz
  </code></pre>
  <p><strong>Update 2:</strong>
  When I run brew doctor, I am given an unreasonably lengthy <a href="https://pastebin.com/n2pE4mYA" rel="noreferrer">list of unexpected header files</a>. Are these related to my problem? If so, what is the best way to go about deleting all of them?</p>
  <p><strong>Update 3:</strong> I ended up resorting to using curl's -k. Only trouble is that when I did it, the terminal gave me <a href="https://pastebin.pl/view/4ed75f6d" rel="noreferrer">hundreds of lines</a> of what seems to be random characters in return. Anyone knows what this is? Not sure what to do here</p>
  <p><strong>Update 4:</strong> Not sure if this is related, but when I try and install ruby 2.3., I get this error:</p>
  <pre><code>Error running '__rvm_make -j4',
  please read /Users/admin/.rvm/log/1596996566_ruby-2.3.8/make.log
  </code></pre>
  <p><a href="https://pastebin.com/3BgHjPkY" rel="noreferrer">This</a> is the log</p>