Pooja Choudhary
Pooja Choudhary

Reputation: 180

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.

Upvotes: 11

Views: 31178

Answers (5)

enzo
enzo

Reputation: 11496

My https_proxy variable was set to something like

https://X.X.X.X:XXXX

Changing to

X.X.X.X:XXXX

solved my problem.

Upvotes: 0

vxxxi
vxxxi

Reputation: 345

I encountered the same error in a Linux environment. Turned out environment variable (i.e. http_proxy and https_proxy) on my VM were set incorrectly.

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.

Upvotes: 6

dsalaj
dsalaj

Reputation: 3207

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

Upvotes: 1

VonC
VonC

Reputation: 1324947

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

Upvotes: 5

smilyface
smilyface

Reputation: 5513

This is your repository's server issue (of SSL certificate). Better contact repository administrator. By the way try accessing ssh URL of the same repository (if you have access).

Upvotes: 0

Related Questions