Add CURLOPT_SSL_CIPHER_LIST to git for allowing custom cipher usages
Hi,
We know git uses cURL to grab https repositories from the Internet. Nowadays the SSL-enabled git repos are getting more and more, especially self-hosted ones.
Some of the websites including those enabled by CloudFlare, however, does not support common encryption ciphers provided by cURL. For example, TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256 will not be support by default in both cURL or git, and it is not a common cipher, Debian/RHEL does not even support it by default (but Fedora does, maybe others, didn't test).
Is it possible to add this feature (this opt is set by calling by curl --cipher cipher_name) to git, allowing custom cipher usage?
Thank you very much.
Signature · 1 line
Luxing Huang
Quoted 12 lines · Steven Huang
Hi,
We know git uses cURL to grab https repositories from the Internet. Nowadays the SSL-enabled git repos are getting more and more, especially self-hosted ones.
Some of the websites including those enabled by CloudFlare, however, does not support common encryption ciphers provided by cURL. For example,
TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256will not be support by default in both cURL or git, and it is not a common cipher, Debian/RHEL does not even support it by default (but Fedora does, maybe others, didn't test).
Quoted 5 lines
Is it possible to add this feature (this opt is set by calling by curl --cipher
cipher_name) to git, allowing custom cipher usage?Thank you very much.
curl through git will honor settings in ~/.curlrc. So you can just add the cipher to your ~/.curlrc, and it should work.