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

Laura Arjona Reina <[email protected]>
Newsgroups gmane.linux.debian.devel.www
Message-ID <0ae1b614-827a-9503-0232-442cf39700eb__10352.7759587907$1484759730$gmane$org@debian.org>
Forgot to add the patch.
Here it is.
Thanks

-- 
Laura Arjona Reina
https://wiki.debian.org/LauraArjona
0001-Add-ca-debian-so-the-script-does-not-fail-when-check.patch (text/x-diff, 971 B)
>From 4968684c8a326bd1c0874c963042733538437199 Mon Sep 17 00:00:00 2001
From: Laura Arjona Reina <[email protected]>
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 = '[email protected]';
 my $private_dest = '[email protected]';
 
+# 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";
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.