This overrides pip's attempt to specify a specific certificate bundle,
and is necessary if we have a MITM SSL proxy.
The security implications are not ideal, because the MITM proxy will
allow any X.509 cert from any CA, whereas pip would only allow an
expected cert. But we got pip via plain https to start with...
CC: Anthony PERARD <anthony.perard@citrix.com>
Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
sub deploy() {
my $httpproxy = http_proxy_envsettings($ho);
-
+ my $mitmcert = target_https_mitm_proxy_cert_path($ho);
+ $httpproxy .=
+ "\n CURL_CA_BUNDLE=$mitmcert; export CURL_CA_BUNDLE"
+ if $mitmcert;
target_cmd($ho, <<END, 1800);
set -e
$httpproxy