1 PLD Linux change (Elan Ruusamäe <glen@pld-linux.org>):
2 use /etc/certs/ca-certificates.crt instead of /etc/pki/tls/certs/ca-bundle.crt
4 From ae8af24d6d935b2824ad955aa9ea8cc557089c77 Mon Sep 17 00:00:00 2001
5 From: =?UTF-8?q?Petr=20P=C3=ADsa=C5=99?= <ppisar@redhat.com>
6 Date: Fri, 16 Sep 2011 10:33:54 +0200
7 Subject: [PATCH] Redirect to ca-certificates bundle
9 Content-Type: text/plain; charset=UTF-8
10 Content-Transfer-Encoding: 8bit
12 This patch replaces Mozilla-CA certificate bundle with bundle
13 delivered by ca-certificates RPM package used as single source of
14 Mozilla certificate bundle.
16 See <https://bugzilla.redhat.com/show_bug.cgi?id=738383> for more
19 Signed-off-by: Petr Písař <ppisar@redhat.com>
22 Makefile.PL | 8 ++++++++
23 lib/Mozilla/CA.pm | 8 +-------
24 3 files changed, 9 insertions(+), 8 deletions(-)
26 diff --git a/MANIFEST b/MANIFEST
27 index a88847b..6577ede 100644
32 -lib/Mozilla/CA/cacert.pem
34 MANIFEST This list of files
36 diff --git a/Makefile.PL b/Makefile.PL
37 index 2b10474..57f2f07 100644
40 @@ -40,3 +40,11 @@ BEGIN {
41 ExtUtils::MakeMaker::WriteMakefile(%arg);
47 + my $name = shift->SUPER::libscan(@_);
48 + # Remove private certificate bundle
49 + if ($name =~ /cacert.pem\z/) { $name = '' };
52 diff --git a/lib/Mozilla/CA.pm b/lib/Mozilla/CA.pm
53 index 050a494..c9f7dc8 100644
54 --- a/lib/Mozilla/CA.pm
55 +++ b/lib/Mozilla/CA.pm
56 @@ -3,16 +3,10 @@ package Mozilla::CA;
58 our $VERSION = '20141217';
62 -use File::Basename qw(dirname);
65 - my $file = File::Spec->catfile(dirname(__FILE__), "CA", "cacert.pem");
66 - if (!File::Spec->file_name_is_absolute($file)) {
67 - $file = File::Spec->catfile(Cwd::cwd(), $file);
70 + return File::Spec->catfile('/etc/certs/ca-certificates.crt');