summaryrefslogtreecommitdiff
path: root/app-misc/ca-certificates/files/ca-certificates-no-cryptography.patch
diff options
context:
space:
mode:
authorAlex Xu (Hello71) <alex_y_xu@yahoo.ca>2021-11-05 11:47:17 -0400
committerAlex Xu (Hello71) <alex_y_xu@yahoo.ca>2021-11-05 11:47:36 -0400
commite466b96a2aee3158710295cf1a1022cdd313b194 (patch)
treec298ec4c26e42e02d1443d41eaba6389f4dfc755 /app-misc/ca-certificates/files/ca-certificates-no-cryptography.patch
parent0ee026916963ba117ac1eaacc08df9300a78577b (diff)
downloadgentoo-overlay-e466b96a2aee3158710295cf1a1022cdd313b194.tar.xz
gentoo-overlay-e466b96a2aee3158710295cf1a1022cdd313b194.zip
app-misc/ca-certificates: add
Diffstat (limited to 'app-misc/ca-certificates/files/ca-certificates-no-cryptography.patch')
-rw-r--r--app-misc/ca-certificates/files/ca-certificates-no-cryptography.patch24
1 files changed, 24 insertions, 0 deletions
diff --git a/app-misc/ca-certificates/files/ca-certificates-no-cryptography.patch b/app-misc/ca-certificates/files/ca-certificates-no-cryptography.patch
new file mode 100644
index 0000000..83cfb92
--- /dev/null
+++ b/app-misc/ca-certificates/files/ca-certificates-no-cryptography.patch
@@ -0,0 +1,24 @@
+--- a/mozilla/certdata2pem.py
++++ b/mozilla/certdata2pem.py
+@@ -28,8 +28,6 @@
+ import textwrap
+ import io
+
+-from cryptography import x509
+-
+
+ objects = []
+
+@@ -122,12 +120,6 @@
+ if not obj['CKA_LABEL'] in trust or not trust[obj['CKA_LABEL']]:
+ continue
+
+- cert = x509.load_der_x509_certificate(obj['CKA_VALUE'])
+- if cert.not_valid_after < datetime.datetime.now():
+- print('!'*74)
+- print('Trusted but expired certificate found: %s' % obj['CKA_LABEL'])
+- print('!'*74)
+-
+ bname = obj['CKA_LABEL'][1:-1].replace('/', '_')\
+ .replace(' ', '_')\
+ .replace('(', '=')\