Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
git: how to solve "SSLRead() return error -9806" in OSX using brew
$ brew remove git
$ brew remove curl
$ brew install openssl
$ brew install --with-openssl curl
$ brew install --with-brewed-curl --with-brewed-openssl git

Thanks

ericojbf commented Oct 6, 2016

thanks, it solves my problem

superbiche commented Mar 5, 2017 edited

Thanks a lot @entropiae! Had the same issue but with PHP. Followed your script, then reinstalled php71 and php71-curl, and everything was fine :)
If anyone runs into the same issue: follow exactly this gist, (you can keep the Git parts as you stay away from trouble), and run brew reinstall php71 --with-homebrew-curl

Didn't work for me unfortunately.

OSX 10.12.3
curl 7.51.0 (x86_64-apple-darwin16.0) libcurl/7.51.0 SecureTransport zlib/1.2.8

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment