Use PERL_LWP_SSL_CA_PATH not HTTPS_CA_DIR as the latter has issues.
[mirror/dsa-nagios.git] / 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'};