]> git.ipfire.org Git - thirdparty/git.git/commit - http.c
http: add client cert support for HTTPS proxies
authorJorge Lopez Silva <jalopezsilva@gmail.com>
Wed, 4 Mar 2020 18:40:05 +0000 (18:40 +0000)
committerJunio C Hamano <gitster@pobox.com>
Thu, 5 Mar 2020 20:25:09 +0000 (12:25 -0800)
commit88238e02d545dedd832cec9d9ed4ca877c44da19
tree5ab61c06ac8069cfdde50e0fd09d217d4db6eda9
parentd0654dc308b0ba76dd8ed7bbb33c8d8f7aacd783
http: add client cert support for HTTPS proxies

Git supports performing connections to HTTPS proxies, but we don't
support doing mutual authentication with them (through TLS).

Add the necessary options to be able to send a client certificate to
the HTTPS proxy.

A client certificate can provide an alternative way of authentication
instead of using 'ProxyAuthorization' or other more common methods of
authentication.  Libcurl supports this functionality already, so changes
are somewhat minimal. The feature is guarded by the first available
libcurl version that supports these options.

4 configuration options are added and documented, cert, key, cert
password protected and CA info. The CA info should be used to specify a
different CA path to validate the HTTPS proxy cert.

Signed-off-by: Jorge Lopez Silva <jalopezsilva@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Documentation/config/http.txt
http.c