[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#851776: [www.debian.org] submit_vendor.pl fails when checking URLs with HTTPS (e.g. LetsEncrypt Certs)



Forgot to add the patch.
Here it is.
Thanks

-- 
Laura Arjona Reina
https://wiki.debian.org/LauraArjona
>From 4968684c8a326bd1c0874c963042733538437199 Mon Sep 17 00:00:00 2001
From: Laura Arjona Reina <larjona@debian.org>
Date: Wed, 18 Jan 2017 15:42:29 +0100
Subject: [PATCH] Add ca-debian so the script does not fail when checking SSL
 certs

---
 cgi-bin/submit_cdvendor.pl | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/cgi-bin/submit_cdvendor.pl b/cgi-bin/submit_cdvendor.pl
index 1d48b1f..8b6d6c7 100755
--- a/cgi-bin/submit_cdvendor.pl
+++ b/cgi-bin/submit_cdvendor.pl
@@ -10,6 +10,13 @@ require 5.001;
 my $public_dest = 'debian-www@lists.debian.org';
 my $private_dest = 'cdvendors@debian.org';
 
+# By default, DSA-administered machines do not trust any CA certs 
+# DSA has provided /etc/ssl/ca-debian as a workaround. 
+# See https://wiki.debian.org/ServicesSSL
+
+my $ca_dir = '/etc/ssl/ca-debian';
+$ENV{PERL_LWP_SSL_CA_PATH} = $ca_dir if -d $ca_dir;
+
 # obligatory to avoid -T crashing and burning -joy, 2007-01-29
 $ENV{PATH} = "/bin:/usr/bin";
 
-- 
2.1.4


Reply to: