unable to access 'https://github.com/Homebrew/brew/': Unknown SSL protocol error in connection to github.com:-9836


(Mohammed Fahjan) #1

Mohammeds-iMac:~ mohammedfahjan$ /usr/bin/ruby -e “$(curl --tlsv1.2 -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)”

==> This script will install:

/usr/local/bin/brew

/usr/local/share/doc/homebrew

/usr/local/share/man/man1/brew.1

/usr/local/share/zsh/site-functions/_brew

/usr/local/etc/bash_completion.d/brew

/usr/local/Homebrew

==> The following new directories will be created:

/usr/local/Caskroom

Press RETURN to continue or any other key to abort

==> /usr/bin/sudo /bin/mkdir -p /usr/local/Caskroom

==> /usr/bin/sudo /bin/chmod g+rwx /usr/local/Caskroom

==> /usr/bin/sudo /bin/chmod 755 /usr/local/share/zsh /usr/local/share/zsh/site-functions

==> /usr/bin/sudo /usr/sbin/chown mohammedfahjan /usr/local/Caskroom

==> /usr/bin/sudo /usr/bin/chgrp admin /usr/local/Caskroom

==> Downloading and installing Homebrew…

fatal: unable to access ‘https://github.com/Homebrew/brew/’: Unknown SSL protocol error in connection to github.com:-9836

Failed during: git fetch origin master:refs/remotes/origin/master --tags --force


(Sean Molenaar) #2

What macOS version are you using?


(Mohammed Fahjan) #3

1- I use macOS Sierra 10.12.6 , iMac (27-inch, Late 2009). and I cant upgrade it to “High sierra”.

2- git --version => git version 2.18.0

3- which git => /usr/local/bin/git


(Sean Molenaar) #4

And why are you specifying the tls protocol in the command?


(Mohammed Fahjan) #5

just i try some changes, all of commands returned same problem

‫في الأحد، 9 سبتمبر 2018 في 2:14 م تمت كتابة ما يلي بواسطة ‪Sean Molenaar‬‏ <‪brew@discoursemail.com‬‏>:‬


(Sean Molenaar) #6

What happens when you just run curl https://github.com/Homebrew/brew/? Could your connection be blocked by a corporate network?


(Mohammed Fahjan) #7

all connections works normally, but this.

the result of the last command in this picture

Screen Shot 2018-09-10 at 10.59.08 AM.png

‫في الاثنين، 10 سبتمبر 2018 في 8:10 ص تمت كتابة ما يلي بواسطة ‪Sean Molenaar‬‏ <‪brew@discoursemail.com‬‏>:‬


(Sean Molenaar) #8

So the connection works normally when not using git… that’s a weird issue. You could try to install using any of the other ways here: https://docs.brew.sh/Installation


(Mohammed Fahjan) #9

I think this helps, but I can’t understand what to do .

the error code is: -9836 and this code written in this link

https://www.fastly.com/blog/requiring-tls-12-fastly-api-control-panel

my macOS support TLS 1.2 but github refused me

‫في الاثنين، 10 سبتمبر 2018 في 11:18 ص تمت كتابة ما يلي بواسطة ‪Sean Molenaar‬‏ <‪brew@discoursemail.com‬‏>:‬


(Mohammed Fahjan) #10

any Ideas please?

‫في الاثنين، 10 سبتمبر 2018 في 12:13 م تمت كتابة ما يلي بواسطة ‪Mohammed Fahjan‬‏ <‪fahjan@gmail.com‬‏>:‬


(Sean Molenaar) #11

You can try this option