summaryrefslogtreecommitdiff
blob: 692439a10eac21ca066d5570ebf85a2a8ed5e0a6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
From f07497e36ccc883626ae5cdfa7f81fcb3fc0d549 Mon Sep 17 00:00:00 2001
From: Sebastian Pipping <sebastian@pipping.org>
Date: Sun, 5 Apr 2020 23:43:30 +0200
Subject: [PATCH] Use system's CA certificate store

---
 certifi/core.py | 7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)

diff --git a/certifi/core.py b/certifi/core.py
index 56b52a3..467880f 100644
--- a/certifi/core.py
+++ b/certifi/core.py
@@ -21,10 +21,9 @@ except ImportError:
 
 
 def where():
-    f = os.path.dirname(__file__)
-
-    return os.path.join(f, "cacert.pem")
+    return "@GENTOO_PORTAGE_EPREFIX@/etc/ssl/certs/ca-certificates.crt"
 
 
 def contents():
-    return read_text("certifi", "cacert.pem", encoding="ascii")
+    with open(where(), "r", encoding="ascii") as f:
+        return f.read()
-- 
2.24.1