Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

passing ciphers to libcurl through git?

Tags:

git

https

libcurl

Environment: Fedora 15 x64 (yes, we are moving away from it), git 1.7.11.1.

We're hitting a problem with git clone which fails on an https repository because the cipher that's used by the Git server isn't enabled by default on the client.

We managed to replicate the problem with plain "curl -v" (curl 7.21.3, but git seems to be using its own copy):

curl -v https://git.repo.com

(the internal server name was replaced) fails like Git, but:

curl --cipher rsa_rc4_128_sha -v https://git.repo.com

succeeds.

The question now is how can we pass such a flag to libcurl which is used by Git. So far I haven't found such a way (google'd about libcurl, git, looked at Git's and libcurl's sources).

like image 407
Amos Shapira Avatar asked Oct 07 '22 04:10

Amos Shapira


1 Answers

No, the option to specify the list of ciphers to libcurl is called CURLOPT_SSL_CIPHER_LIST but is not used by git.

You would need to modify the git source code to introduce this feature. Shouldn't be too hard and possibly you can convince the git project to accept this change for the future!

like image 153
Daniel Stenberg Avatar answered Oct 09 '22 15:10

Daniel Stenberg