Fix the Exception “error: 1407742e:ssl routines:ssl23_get_server_hello:tlsv1 alert protocol version”

Git is an open-source and free software used as a version control system by programmers and developers. It runs locally in your system with the files stored on a computer. Programmers all over the world use gits to handle small and large projects with efficiency and speed. Git is an acronym for Global Information Tracker that allows you to keep a tab on code changes. Programmers also use hosting services like Github or Gitlab to manage the Gits and also make it public to help other programmers and beginners. When you are working with Git, you may experience many errors, and “error: 1407742e:ssl routines:ssl23_get_server_hello:tlsv1 alert protocol version” is one of those errors that you may face.

The error seems a hard one to crack, right? Well, it is not that complex. We have come up with the best possible ways to help you resolve the error and continue with the git. We at Tutupal find it important to provide you with a helping hand to drag you out of the issue. Before jumping to the solution, let’s start with figuring out how the error pops up

How the error shows up

When you try to clone from the GitHub repository using SourceTree, you get the error message. This is what the error looks like:

fatal: unable to access '': error:1407742E:SSL routines:SSL23_GET_SERVER_HELLO:tlsv1 alert protocol version Completed with errors, see above.

You must be wondering to quickly find ways to tackle this warning. Check the next section to find it

How To Fix The Error Warning “error: 1407742e:ssl routines:ssl23_get_server_hello:tlsv1 alert protocol version”

Solution 1 – Update the Git version

The cause of the error is the outdated version of git installed. Version 1.9.5 is an outdated one, so if you are using this version, then upgrading the version can fix the error warning. To check if your system is outdated, you need to go to SourceTree and click Tools, then Options, and tap Git. In the case you use Embedded Git, you get to see that the version is Outdated.  You can opt for the recent Git version, which is 2.16.2.

Once you have the latest version, tap ‘Use System Git’ to get to see the new version. You just need to try to clone after this, and this time you can successfully make it works.

Solution 2 – Update the tls version

Another way to handle the error warning is to update the tls version. But before updating it, you need to figure out which version you have. To do that, you need to type the below command

git config http.sslVersion

It will show the version you have. If you gave tlsv 1.0, then you have the outdated version. You need to upgrade it to tlsv 1.2. To do that, use the below command

git config --global --unset http.sslVersion
git config --global --add http.sslVersion tlsv1.2

It removes the error warning.


We discussed the solutions to help you get rid of the error warning “error: 1407742e:ssl routines:ssl23_get_server_hello:tlsv1 alert protocol version”. You can simply solve the error using the solutions mentioned above.

I hope you enjoyed it and find it useful!

Posted in Git

Leave a Reply

Your email address will not be published. Required fields are marked *