- updated to 20250202.0.0 (20250202) see /usr/share/doc/packages/perl-Mozilla-CA/Changes 20250202 - Update from Mozilla repository to 2025-02-02 - Added certificates: - GLOBALTRUST 2020 sha256: 9a296a5182d1d451a2e37f439b74daafa267523329f90f9a0d2007c334e23c9a - Removed certificates: - Entrust Root Certification Authority - G4 sha256: db3517d1f6732a2d5ab97c533ec70779ee3270a62fb4ac4238372460e6f01e88 - SecureSign RootCA11 sha256: bf0feefb9e3a581ad5f9e9db7589985743d261085c4d314f6f5d7259aa421612 - Security Communication RootCA3 sha256: 24a55c2ab051442d0617766541239a4ad032d7c55175aa34ffde2fbc4f5c5294 OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-Mozilla-CA?expand=0&rev=28
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 = '20250202';
|
|
|
|
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
|
|
|