Create a gist now

Instantly share code, notes, and snippets.

Embed
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
@ouyangshixiong

This comment has been minimized.

Show comment
Hide comment

Thanks

@ericojbf

This comment has been minimized.

Show comment
Hide comment
@ericojbf

ericojbf Oct 6, 2016

thanks, it solves my problem

ericojbf commented Oct 6, 2016

thanks, it solves my problem

@rakeshmenon

This comment has been minimized.

Show comment
Hide comment

thanks @entropiae !

@superbiche

This comment has been minimized.

Show comment
Hide comment
@superbiche

superbiche Mar 5, 2017

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

superbiche commented Mar 5, 2017

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

@brunolemos

This comment has been minimized.

Show comment
Hide comment
@brunolemos

brunolemos Mar 12, 2017

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

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

@zooyf

This comment has been minimized.

Show comment
Hide comment
@zooyf

zooyf Aug 29, 2017

I'm setting a new mac. Installing homebrew, I tried but it didn't work for me too.

macOS Sierra 10.12.6

/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

zooyf commented Aug 29, 2017

I'm setting a new mac. Installing homebrew, I tried but it didn't work for me too.

macOS Sierra 10.12.6

/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

@alexanderkhitev

This comment has been minimized.

Show comment
Hide comment
@alexanderkhitev

alexanderkhitev Sep 25, 2017

Didn't work for me too

Didn't work for me too

@nicolasmlv

This comment has been minimized.

Show comment
Hide comment
@nicolasmlv

nicolasmlv Oct 16, 2017

maybe your git cloud provider is unavailable. (I got this error today, Bitbucket was down)

maybe your git cloud provider is unavailable. (I got this error today, Bitbucket was down)

@chmiiller

This comment has been minimized.

Show comment
Hide comment
@chmiiller

chmiiller Oct 16, 2017

Me too, bit bucket SSH still down =/
https://status.bitbucket.org

Me too, bit bucket SSH still down =/
https://status.bitbucket.org

@gdvalderrama

This comment has been minimized.

Show comment
Hide comment
@gdvalderrama

gdvalderrama Oct 16, 2017

The following warnings appear:
Warning: git: --with-brewed-openssl was deprecated; using --with-openssl instead!
Warning: git: --with-brewed-curl was deprecated; using --with-curl instead!

So you should use brew install --with-curl --with-openssl git in the last step instead

The following warnings appear:
Warning: git: --with-brewed-openssl was deprecated; using --with-openssl instead!
Warning: git: --with-brewed-curl was deprecated; using --with-curl instead!

So you should use brew install --with-curl --with-openssl git in the last step instead

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