b12bcd05e4
- updated to 20240924.0.0 (20240924) see /usr/share/doc/packages/perl-Mozilla-CA/Changes 20240924 - Update from Mozilla repository to 2024-09-24 - Added certificates: - SecureSign Root CA12 sha256: 3f034bb5704d44b2d08545a02057de93ebf3905fce721acbc730c06ddaee904e - SecureSign Root CA14 sha256: 4b009c1034494f9ab56bba3ba1d62731fc4d20d8955adcec10a925607261e338 - SecureSign Root CA15 sha256: e778f0f095fe843729cd1a0082179e5314a9c291442805e1fb1d8fb6b8886c3a - TWCA CYBER Root CA sha256: 3f63bb2814be174ec8b6439cf08d6d56f0b7c405883a5648a334424d6b3ec558 OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-Mozilla-CA?expand=0&rev=26
66 lines
1.7 KiB
Diff
66 lines
1.7 KiB
Diff
From ab01996d4d539cada0013b837b782f27db6b96ff Mon Sep 17 00:00:00 2001
|
|
From: =?UTF-8?q?Petr=20P=C3=ADsa=C5=99?= <ppisar@redhat.com>
|
|
Date: Fri, 16 Sep 2011 10:33:54 +0200
|
|
Subject: [PATCH] Redirect to ca-certificates bundle
|
|
MIME-Version: 1.0
|
|
Content-Type: text/plain; charset=UTF-8
|
|
Content-Transfer-Encoding: 8bit
|
|
|
|
This patch replaces Mozilla-CA certificate bundle with a bundle
|
|
delivered by ca-certificates RPM package used as a single source of
|
|
the Mozilla certificate bundle.
|
|
|
|
See <https://bugzilla.redhat.com/show_bug.cgi?id=738383> for more
|
|
details.
|
|
|
|
Signed-off-by: Petr Písař <ppisar@redhat.com>
|
|
|
|
diff --git a/MANIFEST b/MANIFEST
|
|
index a88847b..6577ede 100644
|
|
--- a/MANIFEST
|
|
+++ b/MANIFEST
|
|
@@ -1,7 +1,6 @@
|
|
.editorconfig
|
|
Changes
|
|
lib/Mozilla/CA.pm
|
|
-lib/Mozilla/CA/cacert.pem
|
|
maint/cacert-diff
|
|
maint/get-tarball-name
|
|
maint/make-tarball
|
|
diff --git a/Makefile.PL b/Makefile.PL
|
|
index 9faf720..a491813 100644
|
|
--- a/Makefile.PL
|
|
+++ b/Makefile.PL
|
|
@@ -90,3 +90,11 @@
|
|
|
|
ExtUtils::MakeMaker::WriteMakefile(%MM_ARGS);
|
|
## END BOILERPLATE ###########################################################
|
|
+
|
|
+package MY;
|
|
+sub MY::libscan {
|
|
+ my $name = shift->SUPER::libscan(@_);
|
|
+ # Remove private certificate bundle
|
|
+ if ($name =~ /cacert.pem\z/) { $name = '' };
|
|
+ return $name;
|
|
+}
|
|
diff --git a/lib/Mozilla/CA.pm b/lib/Mozilla/CA.pm
|
|
index e4a6c56..fdb3c75 100644
|
|
--- a/lib/Mozilla/CA.pm
|
|
+++ b/lib/Mozilla/CA.pm
|
|
@@ -5,11 +5,9 @@
|
|
our $VERSION = '20240924';
|
|
|
|
use File::Spec ();
|
|
-use File::Basename qw(dirname);
|
|
|
|
sub SSL_ca_file {
|
|
- my $file = File::Spec->catfile(dirname(__FILE__), "CA", "cacert.pem");
|
|
- return File::Spec->rel2abs($file);
|
|
+ return File::Spec->catfile('/var/lib/ca-certificates/ca-bundle.pem');
|
|
}
|
|
|
|
1;
|
|
--
|
|
2.25.4
|
|
|