getting curl: (35) error:1400410B:SSL routines:CONNECT_CR_SRVR_HELLO:wrong version number every time I run brew getting curl: (35) error:1400410B:SSL routines:CONNECT_CR_SRVR_HELLO:wrong version number every time I run brew curl curl

getting curl: (35) error:1400410B:SSL routines:CONNECT_CR_SRVR_HELLO:wrong version number every time I run brew


This is an issue with their CDN.

See here: https://github.com/Homebrew/brew/issues/10739

A workaround would be adding this to your hosts file:

54.188.157.32 homebrew.bintray.com


It looks like there is currently a misconfiguration of the server or it is the wrong server to use. The server is not able to do any TLS handshake on port 443, no matter which client is used. From SSLLabs:

enter image description here


If you do not have permissions to modify your hosts file, you can also try this workaround:

~> HOMEBREW_BOTTLE_DOMAIN=https://dl.bintray.com/homebrew brew upgrade

to run the brew upgrade command while setting the HOMEBREW_BOTTLE_DOMAIN environment variable temporarily. It has solved my problem when upgrading my Brew packages.