7

Getting the Error 'curl: (35) LibreSSL SSL_connect: SSL_ERROR_ZERO_RETURN in connection to raw.githubusercontent.com:443' in Mac Terminal when trying to install the HomeBrew. Using Mac OS - Venture 13.0.1 I am not using any VPN/Anti virus/proxy. Any help in resolving this error is appreciated.

si@MacBook-Pro ~ % /bin/bash -c "$(curl -v -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"

  • Trying 49.205.171.201:443...
  • Connected to raw.githubusercontent.com (49.205.171.201) port 443 (#0)
  • ALPN: offers h2
  • ALPN: offers http/1.1
  • CAfile: /etc/ssl/cert.pem
  • CApath: none
  • (304) (OUT), TLS handshake, Client hello (1): } [330 bytes data]
  • LibreSSL SSL_connect: SSL_ERROR_ZERO_RETURN in connection to raw.githubusercontent.com:443
  • Closing connection 0 curl: (35) LibreSSL SSL_connect: SSL_ERROR_ZERO_RETURN in connection to raw.githubusercontent.com:443

I tried curl command with --ciphers ECDHE-RSA-AES128-GCM-SHA256 and ALL by searching in some websites, but it didn't work.

2 Answers 2

8

These steps solved this problem for me

Manually configure hosts:

To modify the host's file on a macOS system:

  1. Open the Finder.
  2. Use the key combination Shift+Command+G to open "Go to Folder", and enter /etc/hosts in the input box. This will open the location of the host's file.
  3. Copy the host's file to the desktop, right-click it, and select "Open with" - "Text Editing".
  4. Open the host's file and copy in the previous content.
  5. Add a new line after the host's file and enter 185.199.108.133 raw.githubusercontent.com.
  6. Save the modified host file. Note: If you are using VS Code, you can modify and save the host's file directly in VS Code without the need to copy it to the desktop first.

You can refer to this link-to-solution!

Sign up to request clarification or add additional context in comments.

5 Comments

works perfectly. It would be great if you could explain the problem, why it is happening
Other solution is add dns entry with 8.8.8.8 , then after it will also work fine.
Thank you so much for this solution. Can you please explain why this issue is occurring though?
@devudilip , This link explains the problem link
1

I switched from office wifi to mobile-hotspot and it worked for me

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.