I am a fedora 20 user. While cloning a repository,I got the following error: " Cloning into 'git_missions'... fatal: unable to access 'https://openhatch.org/git-mission-data/git/hithard/': Cannot communicate securely with peer: no common encryption algorithm(s). "
I am not getting what to do?need help.
larsks
mentioned in the comments:That has been indeed accepted, and merge in Git 2.5+ (Q2 2015)
See commit f6f2a9e by Lars Kellogg-Stedman (
larsks
), 08 May 2015.(Merged by Junio C Hamano --
gitster
-- in commit 39fa791, 22 May 2015)The
git config
man page now includes:That can come in handy in 2015:
Update August 2015: Git 2.6+ (Q3 2015) will allow to specify the SSL version explicitly:
See commit 01861cb (14 Aug 2015) by Elia Pinto (
devzero2000
).Helped-by: Eric Sunshine (
sunshineco
).(Merged by Junio C Hamano --
gitster
-- in commit ed070a4, 26 Aug 2015)The simplest solution is just to use
http
instead ofhttps
:I think the error itself ("no common encryption algorithms") is accurate; it appears that the server wants to use some sort of elliptic curve cipher (TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256) that is not supported by git's underlying SSL library. You can use something like
wireshark
to capture the SSL handshake between git and the server and see the options being passed back and forth.At least on my system,
curl
does not seem to support this cipher, andgit
useslibcurl
for handling https/http connections.Update
So, based on my last comment to @mattdm, in which I discovered that
curl
on my system is using the NSS crypto library, the following works:Unfortunately, there isn't any way to pass a cipher list to
git
. The patch to make it do so is trivial -- here is one version I just made -- but I don't know what the odds are of getting this accepted upstream.