Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can not use "git pull" because of some error

Tags:

github

git pull

fatal: unable to access 'https://github.com/neilyolol/aws.python.git/': error:0D0C50A1:asn1 encoding routines:ASN1_item_verify:unknown message digest algorithm

openssl version

OpenSSL 1.0.1g 7 Apr 2014

python -c 'import ssl; print(ssl.OPENSSL_VERSION)'
OpenSSL 0.9.8e-fips-rhel5 01 Jul 2008
like image 761
Neilyolol Avatar asked May 09 '14 17:05

Neilyolol


2 Answers

I had the same issue and I solved it by replacing the prefix of the url from https to git

like image 57
Alonzzo2 Avatar answered Jan 04 '23 04:01

Alonzzo2


GitHub seems to be using SHA256 as a hashing algorithm for SSL, and that was not added to OpenSSL until version 0.9.8o.

I suspect (since you seem to be running 0.9.8e in Python which is pretty old) that your git is linked to/using a version of OpenSSL which is just plain too old.

like image 33
Joachim Isaksson Avatar answered Jan 04 '23 04:01

Joachim Isaksson