50 lines
1.5 KiB
Diff
50 lines
1.5 KiB
Diff
From dc053415622f4c7fa4fdee2576b640fc105cbf0e Mon Sep 17 00:00:00 2001
|
|
From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Hrn=C4=8Diar?= <thrnciar@redhat.com>
|
|
Date: Mon, 30 Mar 2026 08:08:14 +0200
|
|
Subject: [PATCH] system certs
|
|
MIME-Version: 1.0
|
|
Content-Type: text/plain; charset=UTF-8
|
|
Content-Transfer-Encoding: 8bit
|
|
|
|
Co-authored-by: Lumír Balhar <lbalhar@redhat.com>
|
|
---
|
|
pyproject.toml | 1 -
|
|
src/requests/certs.py | 8 +++++++-
|
|
2 files changed, 7 insertions(+), 2 deletions(-)
|
|
|
|
diff --git a/pyproject.toml b/pyproject.toml
|
|
index dcde263..ac81c96 100644
|
|
--- a/pyproject.toml
|
|
+++ b/pyproject.toml
|
|
@@ -19,7 +19,6 @@ dependencies = [
|
|
"charset_normalizer>=2,<4",
|
|
"idna>=2.5,<4",
|
|
"urllib3>=1.26,<3",
|
|
- "certifi>=2023.5.7"
|
|
]
|
|
dynamic = ["version"]
|
|
|
|
diff --git a/src/requests/certs.py b/src/requests/certs.py
|
|
index 7987ff5..751c363 100644
|
|
--- a/src/requests/certs.py
|
|
+++ b/src/requests/certs.py
|
|
@@ -9,9 +9,15 @@ only one — the one from the certifi package.
|
|
If you are packaging Requests, e.g., for a Linux distribution or a managed
|
|
environment, you can change the definition of where() to return a separately
|
|
packaged CA bundle.
|
|
+
|
|
+This Fedora-patched package returns "/etc/pki/ca-trust/extracted/pem/tls-ca-bundle.pem" provided
|
|
+by the ca-certificates RPM package.
|
|
"""
|
|
|
|
-from certifi import where
|
|
+
|
|
+def where():
|
|
+ """Return the absolute path to the system CA bundle."""
|
|
+ return '/etc/pki/ca-trust/extracted/pem/tls-ca-bundle.pem'
|
|
|
|
if __name__ == "__main__":
|
|
print(where())
|
|
--
|
|
2.53.0
|
|
|