Git pull / push - unable to access HTTPS, SSL routines don't seem to work

I use Git (and GitHub) on a daily basis and everything works fine, and suddenly I can no longer communicate with my remote GitHub repository through my Git commands. When I try "Git pull", it gives the following error:

fatal: cannot access https://github.com/snahrvar/eatibl.git/ ': Error: 1407742E: SSL routines: SSL23_GET_SERVER_HELLO: warning tlsv1 protocol version

So, I tested several repositories and I get the same errors on my computer. I had someone else interacting with the same repositories, and it works great for them. Before this error, I made "npm install sharp" in the project, and it ended in failure, and I suspect that this may have spoiled some SSL settings, but this is a wild guess!

Any general thoughts or recommendations would be greatly appreciated!

If at all useful, here is my environment:

  • Git version: 1.9.4.msysgit.2
  • Windows Version: Windows 8.1
+72
source share
16 answers

Updating TortoiseGit and GCM did not help me, but the Git update was done, as in the @Frederic tip in the comments.

https://git-scm.com/download/win

, Git ​​ (, TortoiseGit, PATH), Git Git. .

+46

Android Studio IntelliJ IDEA, Git , .

Enter a description of the image here.

+10

TortoiseGit, /, , . : git //

My TortoiseGit git Windows Git.exe C:\Program Files (x86)\Git\bin. C:\Program Files\Git\bin, .

+9

, .

+5
+4

, GitHub Visual Studio Code. :

  • Git.
  • Git Windows.
  • .
  • ​​ Visual Studio .
  • Windows Git C:\Program Files (x86)\Git\bin. C:\Program Files\Git\bin.

.

, -.

+3

Git . :

C:\wamp64\www\maandlastenmanager> git config http.sslVersion
tslv1.0

C:\wamp64\www\maandlastenmanager> git config http.sslVersion tlsv1.2

C:\wamp64\www\maandlastenmanager> git config http.sslVersion
tslv1.2
+3

macOS git Homebrew.

+2

TL; DR: git config --system http.sslbackend schannel HTTPS github.com


Git Windows 8 x64. , HTTPS . , , GitHub .

  • Git - - OpenSSL (. )
  • -

SSL:

git config --system http.sslbackend openssl ----------------vs------------------ git config --system http.sslbackend schannel SSL-:

  • OpenSSL, HTTPS ON: error:0407006A:rsa routines:RSA_padding_check_PKCS1_type_1:block type is not 01
  • OpenSSL, HTTPS OFF: SSL certificate problem: unable to get local issuer certificate
  • SecureChannel, HTTPS ON: schannel: next InitializeSecurityContext failed: Unknown error (0x80092012) - The revocation function was unable to check revocation for the certificate.
  • SecureChannel, HTTPS :

P.S.: Git, " Windows SSL".

P.P.S.: (3) ​​ schannel, MITM, , .

+2

git config --global http.sslVerify true, , SSL.

- ssh, URL- SSL.

SSH

o Git (Git Bash): ssh-keygen

:

/ RSA.

(/h//. ssh/id_rsa):

, , , (/h//.ssh/id_rsa): C:\Users\Public\my-new-ssh-key

( 8 )

• : eval "$ (ssh-agent -s)"

• : ssh-add C:/Users/Public/my-new-ssh-key : SSH-.

my-new-ssh-key.pub (Bitbucket, GitHub ..)

+2

, , Git, (2.16.2) 64- Git Windows. 5 , 2018-02-20.

+1

@andw :

Git 1.9.5 2.15.1, :

sourceTree Tools → Options → Git → Use Embedded Git.

+1

, pull, push .. :

fatal: unable to access 'https://github.com/repository.git/': error:1
407742E:SSL routines:SSL23_GET_SERVER_HELLO:tlsv1 alert protocol version

Git 64- 32- .

Git . :

C:\Program Files\Git\bin\git.exe
0

This is a problem with IntelliJ and RubyMine. GitHub should disable SSL (PCI compatibility, maybe?) In favor of TLS. If you open "Settings" in IntelliJ or RubyMine and go to "Version Control"> Git, you will see it using git.exe installed in the application path. You must download the latest version of Git and change the path in your VCS settings to indicate this, for example. C: \ Program Files \ Git \ bin \ git.exe if you install it on Windows. Works like a charm after that.

0
source

All Articles