Homebrew cannot download from homebrew.bintray.com, gives a curl error: "no alternative certificate subject name matches target host name"
Matthew Barrera
When I try to install or upgrade any package hosted on homebrew.bintray.com, I get the following error:
curl: (60) SSL: no alternative certificate subject name matches target host name 'homebrew.bintray.com'
It suggests looking at , but if there's a solution on there I don't know enough about curl or ssl to see it.
I have been unable to find anybody else online with this problem--everything I've found has either been server-side issues (which I know this isn't, since I've tested installing the same packages on other machines and they've worked perfectly) or just said to use curl -k, which doesn't seem like a wise long-term fix.
The only warning I get running brew doctor simply says that guile@2 is deprecated or disabled.
EDIT:
Reinstalling Homebrew has not worked. Homebrew appears to be working fine; I can install packages not hosted on homebrew.bintray.com (e.g., Adobe Reader).
Attempting to access from Safari, I get "This Connection Is Not Private"; when I view the certificate, it is named *.us-west-2.es.amazonaws.com. Doing this on a computer with working homebrew instead gets a certificate named *.bintray.com.
1 Answer
In case anybody else comes across this issue, this reply on the Homebrew GitHub issues page was able to fix it BUT requires switching to the development version of Brew.
1It looks like you're being connected elsewhere for some reason. It sounds more like a network-related issue. Are you running a firewall/packet analyser/etc (e.g. Little Snitch)? You might also have a weird DNS setup.
Failing figuring that out, this might work:
HOMEBREW_BOTTLE_DOMAIN= brew install <formula>It's likely that this only works if you're on the development version of brew, though. To switch to it,
HOMEBREW_DEVELOPER=1 brew updateI'd recommend this only as a last resort, though, since switching back to the stable version of brew could get complicated.