bf5e92b161
* Also add Authority Key Identifiers to children certs. OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-trustme?expand=0&rev=29
18 lines
743 B
Diff
18 lines
743 B
Diff
Author: Bernhard M. Wiedemann <bwiedemann suse de>
|
|
Date: 2023-01-14
|
|
Subject: Fix tests of python-aiosmtplib after 2038
|
|
|
|
Index: trustme-1.0.0/src/trustme/__init__.py
|
|
===================================================================
|
|
--- trustme-1.0.0.orig/src/trustme/__init__.py
|
|
+++ trustme-1.0.0/src/trustme/__init__.py
|
|
@@ -37,7 +37,7 @@ __all__ = ["CA"]
|
|
# Some versions of cryptography on 32-bit platforms fail if you give
|
|
# them dates after ~2038-01-19:
|
|
# https://github.com/pyca/cryptography/pull/4658
|
|
-DEFAULT_EXPIRY = datetime.datetime(2038, 1, 1)
|
|
+DEFAULT_EXPIRY = datetime.datetime(2098, 1, 1)
|
|
|
|
def _name(name: str, organization_name: Optional[str] = None, common_name: Optional[str] = None) -> x509.Name:
|
|
name_pieces = [
|