Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Getting fatal error at the time of - git pull - SSL routines:SSL3_GET_RECORD

I am getting error at the time of - git pull , Error is “ Fatal: unable to access 'https://github.com/repository.git/': error:1408F10B:SSL routines:SSL3_GET_RECORD:wrong version number?” . Please suggest solution.

like image 292
Preet Avatar asked Feb 22 '18 05:02

Preet


3 Answers

The Op mentions

my problem is fixed. Internet speed was very slow so issue occurs.

But do also consider that GitHub disabled just yesterday (Feb. 22 2018) deprecated algorithms:

  • TLSv1/TLSv1.1: This applies to all HTTPS connections, including web, API, and git connections to https://github.com and https://api.github.com.
  • diffie-hellman-group1-sha1: This applies to all SSH connections to github.com
  • diffie-hellman-group14-sha1: This applies to all SSH connections to github.com

Upgrading to the latest Git should be enough to not be no

like image 109
VonC Avatar answered Oct 16 '22 13:10

VonC


I encountered the same error in a Linux environment. Turned out environment variable (i.e. http_proxy and https_proxy on my VM weren't set correctly.

You would want to check:

  • if you are behind a firewall
  • if you need to use a proxy to access internet/github. If so, make sure to set https_proxy correctly.
like image 42
vxxxi Avatar answered Oct 16 '22 13:10

vxxxi


If on Windows 10, updating to git version 2.29.1.windows.1 (link) solved the problem for me.

like image 1
dsalaj Avatar answered Oct 16 '22 14:10

dsalaj