programing

Git pull / push-HTTPS에 액세스 할 수 없음, SSL 루틴이 다운 된 것 같습니다.

nasanasas 2020. 8. 15. 09:22
반응형

Git pull / push-HTTPS에 액세스 할 수 없음, SSL 루틴이 다운 된 것 같습니다.


저는 매일 Git (및 GitHub)을 사용하고 있으며 모든 것이 정상적으로 작동하고 갑자기 Git 명령을 통해 원격 GitHub 저장소와 더 이상 통신 할 수 없습니다. "Git pull"을 시도하면 다음과 같은 오류가 발생합니다.

치명적 : ' https://github.com/snahrvar/eatibl.git/ ' 에 액세스 할 수 없음 : error : 1407742E : SSL 루틴 : SSL23_GET_SERVER_HELLO : tlsv1 경고 프로토콜 버전

그래서 여러 리포지토리에서 테스트했는데 컴퓨터에서 동일한 오류가 발생했습니다. 다른 사람이 동일한 리포지토리와 상호 작용하도록했으며 제대로 작동합니다. 이 오류가 발생하기 전에 나는 프로젝트에서 "npm install sharp"를했고 결국 실패했고 이것이 SSL 설정을 엉망으로 만들었을지도 모른다고 생각합니다.

일반적인 생각이나 안내를 주시면 감사하겠습니다!

도움이된다면 내 환경은 다음과 같습니다.

  • Git 버전 : 1.9.4.msysgit.2
  • Windows 버전 : Windows 8.1

TortoiseGit 및 GCM을 업데이트하는 것은 도움이되지 않았지만 @Frederic의 의견에 따라 Git 자체를 업데이트하면 도움이되었습니다.

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

새 버전의 Git이 제대로 설치되고 이전 설치와 충돌하지 않는지 확인하려면 (다른 폴더를 사용하고 PATH 변수를 엉망으로 만들기 때문에 TortoiseGit을 사용한 경우) 업데이트 된 Git을 설치하기 전에 기존 Git 설치를 제거하십시오. . 관리자 권한으로 설치해야 할 수도 있습니다.


GitHub의 약한 SSL 암호화 프로토콜 지원 중단과 호환되지 않는 문제가 발생할 수 있습니다.

취약한 암호화 표준 제거 알림

솔루션은 다양하지만 Windows의 경우 Git 자격 증명 관리자를 1.14.0으로 업그레이드해야 할 수 있습니다.

https://github.com/Microsoft/Git-Credential-Manager-for-Windows/releases/tag/v1.14.0


Android Studio 또는 IntelliJ IDEA를 사용하는 경우 Git을 최신 버전으로 업데이트 하고 새 버전을 가리 키도록 경로를 변경하면 문제가 해결됩니다.

여기에 이미지 설명 입력


TortoiseGit을 사용하여 다른 모든 수정 / 업데이트를 수행했지만 여전히 성공하지 못했습니다. 나는 이것을 발견했다 : 갑자기 git push / pull / fetch 할 수 없음

Windows 용 Git에 대한 TortoiseGit 설정 Git.exe 경로가 C:\Program Files (x86)\Git\bin. 나는 그것을로 변경 C:\Program Files\Git\bin했고 이제 다시 작동합니다.


이것이 나를 위해 일한 것입니다.

  1. https://git-scm.com/download/win 에서 최신 버전의 Git을 설치합니다.
  2. TortoiseGit에서 메뉴 설정일반Git.exe 경로 로 이동 -32 비트에서 64 비트 경로로 변경 : C : \ Program Files (x86) \ Git \ bin → C : \ Program Files \ Git \ bin

내 상황에서는 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

Visual Studio Code 터미널의 GitHub에서 코드를 가져 오는 동안 동일한 문제가 발생했습니다 . 이전 답변의 조언이 유용하다는 것을 알았고 아래 단계에 따라 솔루션을 함께 해킹했습니다.

이 저장소 는 매우 유용했습니다.

누군가에게 도움이되기를 바랍니다.


TL; DR : 바이러스 백신 소프트웨어에서 git config --system http.sslbackend schannelHTTPS 검사를 해제 github.com합니다.


Windows 8 x64에서 Git 명령 줄을 사용하고 있습니다. 또한 내 바이러스 백신 소프트웨어는 기본적으로 HTTPS 트래픽확인합니다 . 이 질문에 답하는 다른 사람들과 마찬가지로 저는 거의 매일 GitHub를 사용합니다.

  • Git 업데이트-도움이 안 됨-OpenSSL을 사용했기 때문에 (아래 참조)
  • 자격 증명 관리자 업데이트-도움이되지 않음

그런 다음 SSL 백엔드를 전환하기 시작했습니다.

git config --system http.sslbackend openssl ----------------vs------------------ git config --system http.sslbackend schannel 바이러스 백신 소프트웨어는 SSL 트래픽을 확인합니다.

  1. OpenSSL, HTTPS 확인 사용 : error:0407006A:rsa routines:RSA_padding_check_PKCS1_type_1:block type is not 01
  2. OpenSSL, HTTPS 확인 해제 : SSL certificate problem: unable to get local issuer certificate
  3. SecureChannel, HTTPS 체크 ON : schannel: next InitializeSecurityContext failed: Unknown error (0x80092012) - The revocation function was unable to check revocation for the certificate.
  4. SecureChannel, HTTPS 확인 해제 : 정상적으로 작동 함

P.S.: Instead of commandline, you can just reinstall the latest Git, selecting "Use native Windows SSL validation library".

P.P.S.: The case (3) seems to be a bug in the schannel library, because the MITM certificate my antivirus software uses is whitelisted on my machine.


On macOS, you can install the latest git via Homebrew.


Same for me with Git 1.9.5.msysgit.1 too. I tried to install https://github.com/Microsoft/Git-Credential-Manager-for-Windows/releases/tag/v1.14.0, but no change.

Actually, nothing happen after installation; maybe I'm doing something wrong? (That may not help for the initial question, but for other people, yes!)


Yeah, I encountered the same issue on a pull request today and the solution was to simply update Git by downloading the latest (2.16.2) 64-bit version of Git for Windows. It was released 5 days ago, on 2018-02-20.


The comment by @andw worked for me:

Update Git version 1.9.5 to 2.15.1 using these steps:

In sourceTree, go to menu ToolsOptionsGitUse Embedded Git.


A quick solution would be git config --global http.sslVerify true, but it is not recommended as it defeats the purpose using SSL.

A second and better way is to use ssh keys rather than an SSL URL.

Steps to generate SSH keys

o Run the following command in a Git terminal (Git Bash): ssh-keygen

After running the command, the following message will appear:

Generating public/private RSA key pair.

Enter file in which to save the key (/h//.ssh/id_rsa):

Give the path for the key to be stored in, for example, enter the file in which to save the key (/h//.ssh/id_rsa): C:\Users\Public\my-new-ssh-key

Then give the passphrase for that key (any password of minimum 8 characters)

• Next run the following command: eval “$(ssh-agent –s)”

• Run the following command: ssh-add C:/Users/Public/my-new-ssh-key Note: use forward slash in the path to the newly created SSH key.

After that, add the contents of the file my-new-ssh-key.pub and add it in the text area for Add public key (Bitbucket, GitHub, etc.)


While connecting to a remote repository to fetch, pull, push, etc., I had the same error:

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

I just reinstalled Git 64-bit in place of 32-bit and that fixed the issue.

After installation, verify the Git path in environment variables. It should be:

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

This is an issue with IntelliJ and RubyMine. GitHub must have disabled SSL (PCI compliance maybe?) in favor of TLS. If you open Settings in IntelliJ or RubyMine and navigate to Version Control > Git, you'll see it's using a git.exe installed under the application's path. You should download the most current version of Git and change the path in your VCS settings to point to that, e.g. C:\Program Files\Git\bin\git.exe if you install it on Windows. Works like a charm after that.


Sometimes, this is caused by outdated msysgit which is using old ssl and not maintained any more, you can install latest git for windows, and point the git.exe path in tortoise setting to it, then this problem gone.


Encountered a similar error. On windows, Updated git on windows to the latest version. That fixed the problem.


Git version upgrade did the trick for me. I had the version 1.9.5 and so and I upgraded to 2.21.0 on windows. Also upgrading is very easy. We don't need to uninstall the older version. Download the latest Git installer and just keep on pressing next using default options and the version will be changed to new version and all the old settings will still be working like ssh keys etc. We don't need to generate the keys again and put on github or any other repository.

Earlier my https protocol cloning was not working and giving error

fatal: unable to access 'https://github.com/tensorflow/models/': error:1407742E: SSL routines:SSL23_GET_SERVER_HELLO:tlsv1 alert protocol version

새 버전을 다운로드하고 동일한 복제 명령을 실행하면 아무런 문제없이 작동했습니다.

참고 URL : https://stackoverflow.com/questions/48938019/git-pull-push-unable-to-access-https-ssl-routines-seem-to-be-down

반응형