From: Paul Wise Date: Sun, 14 Jun 2015 11:37:23 +0000 (+0800) Subject: Use PERL_LWP_SSL_CA_PATH not HTTPS_CA_DIR as the latter has issues. X-Git-Url: https://git.adam-barratt.org.uk/?a=commitdiff_plain;h=f4b31b6ed97313f5abdcd368f3be7f11970916ed;p=mirror%2Fdsa-nagios.git Use PERL_LWP_SSL_CA_PATH not HTTPS_CA_DIR as the latter has issues. The issues include #746579 (now fixed) and #788698. Thanks-to: jwilk on #debian-qa --- diff --git a/dsa-nagios-checks/checks/dsa-check-mirrorsync b/dsa-nagios-checks/checks/dsa-check-mirrorsync index f3bf783..2e8100f 100755 --- a/dsa-nagios-checks/checks/dsa-check-mirrorsync +++ b/dsa-nagios-checks/checks/dsa-check-mirrorsync @@ -54,7 +54,7 @@ sub usage($$) { # Work around LWP not being able to verify service certs directly my $ca_dir = '/etc/ssl/ca-debian'; -$ENV{'HTTPS_CA_DIR'} = $ca_dir if -d $ca_dir; +$ENV{'PERL_LWP_SSL_CA_PATH'} = $ca_dir if -d $ca_dir; $ENV{'PATH'} = '/bin:/sbin:/usr/bin:/usr/sbin'; delete @ENV{'IFS', 'CDPATH', 'ENV', 'BASH_ENV'};