Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

GitKraken And Github - failed to get server certificate: The handle is in the wrong state for the requested operation

I am getting this error message from GitKraken whenever I try to clone/fetch/push/push to any of my Github repositories:

failed to get server certificate: The handle is in the wrong state for the requested operation

I have no idea why this is happening, everything was working fine with my current setup until yesterday and I have checked that GitKraken is properly authorized to connect to my Github account and my repositories.

What I have tried:

  • Remove and add my credentials, reauthorize GitKraken.
  • Check my Git installation - can correctly push/pull and clone Github repos.
  • Tested on another machine, I can reproduce the issue.
  • Reinstalled GitKraken.
  • Run as administrator.
  • Removed the .gitkraken folder under %AppData% and reconnected from scratch.
  • Installed the kb3140245 update as suggested in the GitKraken Slack channel to someone else with a similar issue.
  • Generated and added SSH keys via the GitKraken UI to connect to Github.

Technical Information:

  • GitKraken version: 3.3.4
  • OS: Windows 7 Ultimate (x64)

Anyone else have a similar problem or know how to deal with this?

PS: I am not entirely sure what other technical information might be of use to troubleshoot the issue, so feel free to ask me in the comments below to update my question with any relevant information.

like image 887
Angelos Chalaris Avatar asked Feb 26 '18 10:02

Angelos Chalaris


2 Answers

This is because Github removed weak cryptophic standard support (TLSv1 and TLSv1.1) - source

All you have to do on Windows devices (mostly on Windows 7) is set default TLS version to 1.2 - link

Step-by-step fix

  1. Download the kb3140245 update from Microsoft, which is necessary to enable TLS 1.1 and TLS 1.2.
  2. Download the easy fix utility from Microsoft and run it.
  3. Restart your system. Everything should work fine. There might be issues with some websites etc, just rebooting your router should resolve any issues that might arise.
like image 170
Štāls Ingus Avatar answered Nov 06 '22 04:11

Štāls Ingus


This broke me for a long time.

In gitkraken, go to the left window where "origin" is on your respective repos, click the three dots over flow and click "edit origin", make sure your pull & push urls are ssh or http NOT https.

like image 9
Ezr0 Avatar answered Nov 06 '22 03:11

Ezr0