Homebrew gives SSL error (SSL_ERROR_SYSCALL) on home network

As the title says, when I try to install packages via homebrew through my home network, I get the following error:

curl: (35) LibreSSL SSL_connect: SSL_ERROR_SYSCALL in connection to akamai.bintray.com:443
Error: Failed to download resource "rclone"
Download failed: 

However, I can download from the .tar.gz URL that is specified just fine through my browser.

I know this is only a problem with my home network because when I tether my phone it works fine.

Probably got something to do with my router settings and/or ISP but I am not sure where to look.

Thanks for the help! :)

6

3 Answers

A thought occurs to me -- have you checked your router to see if it is doing a transparent proxy for you?

If it is, then you may want to turn that off.

If you can't turn it off, then you might want to install a VPN solution that will allow you to bypass it.

Just a thought.

1

Since you're using LibreSSL, try re-installing curl with OpenSSL instead of Secure Transport.

The latest brew, it depends on OpenSSL by default, so you've to reinstall it:

brew reinstall curl

For older Brew, there was an option --with-openssl which was removed, e.g.

brew reinstall curl --with-openssl

Here are few other suggestions:

  • Run brew options curl to display install options specific to formula.
  • Compile from the source. Check curl.rb formula for more details.
  • Make sure you're not using http_proxy/https_proxy.
  • Use -v to curl for more verbose output.
  • Try using BSD curl at /usr/bin/curl, run which -a curl to list them all.
  • Make sure you haven't accidentally blocked curl in your firewall (such as Little Snitch).
  • Alternatively use wget.
7

For those who are still struggling to resolve this.

Please try:

brew update-reset
brew update # This might not be needed.

I found this gem here.

1

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

You Might Also Like