Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork33.7k
Closed
Description
Environment
- i.MX6 32 bits CPU
- Yocto Kirkstone (kirkstone-4.0.6)
- Linux 5.10.109
- glibc 2.35 (8d125a1f9145ad90c94e438858d6b5b7578686f2)
- openssl 3.0.7
- Python 3.10.8
- RFS built with "-D_TIME_BITS=64 -D_FILE_OFFSET_BITS=64" flags
- System date set after 011903142038 (2038 Jan 19 03:14:00)
# openssl versionOpenSSL 3.0.7 1 Nov 2022 (Library: OpenSSL 3.0.7 1 Nov 2022)# python3 -VPython 3.10.8# dateThu Jan 19 04:04:50 UTC 2040Description
test_ssl returns the following error on 32 bits board with system date after 2038:
======================================================================FAIL:test_session (test.test_ssl.ThreadedTests)----------------------------------------------------------------------Traceback (most recent call last): File"/usr/lib/python3.10/test/test_ssl.py", line4366, intest_sessionself.assertGreater(session.time,0)AssertionError:-2084411619 not greater than 0----------------------------------------------------------------------
The same test passes with a system date before 2038.
How to reproduce
- Set
enddateto20421028142316Zin make_ssl_certs.py file - Run make_ssl_certs.py to create new certificates
- Update test_ssl.py and test_asyncio/utils.py according to make_ssl_certs.py output
- Run the following command:
python3 -m test test_ssl -v