fatal: unable to access 'https://github.com/xxx': OpenSSL SSL_connect: SSL_ERROR_SYSCALL in connection to github.com:443 [duplicate]
When l try to use git push
, an error reports:
Fatal: fatal: unable to access 'https://github.com/xxx': OpenSSL SSL_connect: SSL_ERROR_SYSCALL in connection to github.com:443
My git version is 2.16.2 for windows
It worked well before this day, and reinstalling git seems to not work.
Can anyone help me with that? Thanks in advance!
Solution 1:
If you are behind a proxy, try the following:
git config --global --add remote.origin.proxy ""
Solution 2:
After reinstalling Git did nothing, I found an issue on GitHub that helped me solve it.
In your terminal run this command first:
git config --global http.sslBackend "openssl"
Then this one:
git config --global http.sslCAInfo "C:\Program Files\Git\mingw64\ssl\cert.pem"
You may need to change your path depending on where you have it installed.
Solution 3:
Opening a new terminal session worked for me
Solution 4:
git config --global --add remote.origin.proxy "127.0.0.1:(proxy http port number)"
in ch
add image @afder cc
's
Solution 5:
if your using proxy try to go to run and enter inetcpl.cpl then connections then Lan settings then advance and now you see your proxy, use the http one.
then open Git Bash then enter this command
$ git config --global http.proxy
if theres no output of it then the proxy in Git Bash is not set then set it with these command and use proxy and port shown in the 1st paragraph
$ git config --global http.proxy proxyaddress:port
then enter this command again
$ git config --global http.proxy
and there you go it is set
to reset the proxy on Git Bash just enter this command
$ git config --global --unset http.proxy
i was also having these problem lately i was using psiphon vpn on desktop as a newbie it was also hard to find this solution glad i could help. :)