title: Homebrew install: error: RPC failed; curl 56 LibreSSL SSL_read: error:06FFF064:digital envelope routines:CRYPTO_internal:bad decrypt, errno 0
body: <p>Am trying to install <code>homebrew</code> on a Macbook pro Apple M1 with MacOS Monterey but it always fails at this step as shown below.</p>
  <pre><code>HEAD is now at 472edc06e Merge pull request #12943 from Homebrew/update-man- 
  completions
  ==&gt; Tapping homebrew/core
  remote: Enumerating objects: 1150006, done.
  remote: Counting objects: 100% (29/29), done.
  remote: Compressing objects: 100% (19/19), done.
  error: RPC failed; curl 56 LibreSSL SSL_read: error:06FFF064:digital envelope 
  routines:CRYPTO_internal:bad decrypt, errno 0
  error: 1835 bytes of body are still expected
  fetch-pack: unexpected disconnect while reading sideband packet
  fatal: early EOF
  fatal: fetch-pack: invalid index-pack output
  Failed during: git fetch --force origin 
  refs/heads/master:refs/remotes/origin/master
  </code></pre>
  <p>I have tried setting my git global username like this</p>
  <pre><code>git config --global user.email yourgitemail@example.com
  </code></pre>
  <p>To deleting homebrew and trying a fresh install like this</p>
  <pre><code>sudo rm -fr /opt/homebrew
  </code></pre>
  <p>To increasing the buffer size</p>
  <pre><code>git config --global http.postBuffer 524288000 
  </code></pre>
  <p>With no success. Nothing seem to work for me.</p>