Software⏱️ 3 min read📅 2026-06-15

How to Fix: SSL error when connecting to git from Mac OS X 10.11.3 (El Capitan)

Git error on Mac OS X 10.11.3 (El Capitan) due to SSL issue.

Quick Answer: Try updating git, curl and openssl with homebrew to the latest versions again or consider using a different Git client.

When attempting to clone, pull, or fetch from a Git repository via HTTPS on Mac OS X 10.11.3 (El Capitan), users encounter an error characterized by 'error: RPC failed; result=56, HTTP code = 200' and 'fatal: The remote end hung up unexpectedly'. This issue persists even after increasing the log level, revealing an SSL-related problem.

This frustrating error prevents users from successfully interacting with Git repositories, hindering productivity and workflow. In this guide, we will explore potential causes and provide step-by-step solutions to resolve this issue.

🔍 Why This Happens

  • The primary reason for this error lies in the way SSL certificates are handled by OpenSSL on El Capitan. By default, OpenSSL uses a deprecated version of SSL that is incompatible with modern Git repositories. This incompatibility leads to the 'RPC failed' and 'remote end hung up unexpectedly' errors.
  • An alternative cause could be related to the configuration of the Git server or the specific repository being accessed. In some cases, the Git server may not be configured correctly, resulting in an invalid SSL connection.

🔧 Proven Troubleshooting Steps

Enabling OpenSSL's Secure Protocol

  1. Step 1: Update the OpenSSL version using Homebrew to ensure compatibility with modern Git repositories.
  2. Step 2: Run the following command to update OpenSSL: `brew upgrade openssl`.
  3. Step 3: Verify that the updated OpenSSL version is being used by checking the current configuration: `openssl version -a`.

Configuring Git to Use a Different SSL Certificate

  1. Step 1: Try using a different Git client, such as Git Bash or the command-line interface, to access the repository.
  2. Step 2: If available, use the `--insecure` option when cloning or fetching from the repository: `git clone --insecure https://somehost.madeup.now/some/repository.git`.

✨ Wrapping Up

To resolve the SSL error when connecting to Git repositories via HTTPS on Mac OS X 10.11.3 (El Capitan), try enabling OpenSSL's secure protocol by updating to a newer version using Homebrew. If this fails, attempt configuring Git to use a different SSL certificate by utilizing an alternative Git client or the `--insecure` option.

Did this fix your problem?

If not, try searching for specific error codes.

🔍 Search Error Database

❓ Frequently Asked Questions