From 7c886d97528d455cba0ecfad071e01b5ad19fefc Mon Sep 17 00:00:00 2001 From: Don Armstrong Date: Fri, 7 Aug 2015 11:55:39 -0700 Subject: [PATCH] add workaround for lynx to use ca-debian/ca-certificates.crt --- scripts/service | 3 +++ 1 file changed, 3 insertions(+) diff --git a/scripts/service b/scripts/service index 364a0ed9..8ec49cc8 100755 --- a/scripts/service +++ b/scripts/service @@ -904,9 +904,12 @@ END sub sendlynxdocraw { my ($relpath,$description) = @_; $doc=''; + # work around DSA cert setup + $ENV{SSL_CERT_FILE}='/etc/ssl/ca-debian/ca-certificates.crt'; open(L,"lynx -nolist -dump $gCGIDomain/\Q$relpath\E 2>&1 |") || die "fork for lynx: $!"; while() { $doc.=$_; } $!=0; close(L); + delete $ENV{SSL_CERT_FILE}; if ($? == 255 && $doc =~ m/^\n*lynx: Can\'t access start file/) { print {$transcript} "Information ($description) is not available -\n". "perhaps the $gBug does not exist or is not on the WWW yet.\n"; -- 2.39.5