Use PERL_LWP_SSL_CA_PATH not HTTPS_CA_DIR as the latter has issues.
authorPaul Wise <pabs@debian.org>
Sun, 14 Jun 2015 11:37:23 +0000 (19:37 +0800)
committerPaul Wise <pabs@debian.org>
Sun, 14 Jun 2015 11:45:05 +0000 (19:45 +0800)
The issues include #746579 (now fixed) and #788698.

Thanks-to: jwilk on #debian-qa

dsa-nagios-checks/checks/dsa-check-mirrorsync

index f3bf783..2e8100f 100755 (executable)
@@ -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'};