git and "Server aborted the SSL handshake" errors

Often when I want to push to my private repo I get a "Server aborted the SSL handshake" error. After several tries it often suddenly works. I was yet not able to find a solution on the internet :(

It might be a problem of the different ssl version you are using.

In order to fix it generate a new ssl (RSA) certificate, and update your GitHub account with this new certificate.

Here is how to set it up:

  • Generate a new ssh key. *Set the -t to rsa in order to avoid future connection problems.

    ssh-keygen -t rsa
    
  • Once you have your generated in your %HOME%/.ssh directory ( windows: Users/<your user>.ssh), open it and copy the content of the <keyname>.pub


How to set up ssh key under your GitHub account?

  • Login to GitHub account
  • Click on the rancher on the top right (Settings)
    enter image description here
  • Click on the SSH keys and GPG Keys
    enter image description here
  • Click on the New SSH key
    enter image description here
  • Paste your key and save

Note

After the first set up open terminal and run a git fetch so the key will be tested and added to your known hosts file.


This may help you:

Generate SSH Key: https://help.github.com/articles/generating-a-new-ssh-key-and-adding-it-to-the-ssh-agent/

Then add it your git account: https://help.github.com/articles/adding-a-new-ssh-key-to-your-github-account/

Tags:

Git

Ssl

Ssh

Github