RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 1557342 - pyOpenSSL testsuite - expired certificate
Summary: pyOpenSSL testsuite - expired certificate
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: pyOpenSSL
Version: 7.6
Hardware: All
OS: All
medium
low
Target Milestone: rc
: ---
Assignee: Tomas Mraz
QA Contact: Stanislav Zidek
URL:
Whiteboard:
Depends On:
Blocks: 1563605
TreeView+ depends on / blocked
 
Reported: 2018-03-16 13:01 UTC by Stanislav Zidek
Modified: 2018-10-30 09:48 UTC (History)
2 users (show)

Fixed In Version: pyOpenSSL-0.13.1-4.el7
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
: 1557344 (view as bug list)
Environment:
Last Closed: 2018-10-30 09:48:30 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2018:3106 0 None None None 2018-10-30 09:48:47 UTC

Description Stanislav Zidek 2018-03-16 13:01:54 UTC
Description of problem:
Certificate hardcoded in upstream test suite of pyOpenSSL expired (2017-06-11 12:36:58 UTC as far as I can tell).

Version-Release number of selected component (if applicable):
pyOpenSSL-0.13.1-3.el7

How reproducible:
always

Steps to Reproduce:
1. trial /usr/lib64/python2.7/site-packages/OpenSSL/test/test_ssl.py


Actual results:
===============================================================================
[ERROR]
Traceback (most recent call last):
  File "/usr/lib64/python2.7/unittest/case.py", line 369, in run
    testMethod()
  File "/usr/lib64/python2.7/site-packages/OpenSSL/test/test_ssl.py", line 633, in test_load_verify_directory
    self._load_verify_locations_test(None, capath)
  File "/usr/lib64/python2.7/site-packages/OpenSSL/test/test_ssl.py", line 588, in _load_verify_locations_test
    handshake(clientSSL, serverSSL)
  File "/usr/lib64/python2.7/site-packages/OpenSSL/test/test_ssl.py", line 109, in handshake
    conn.do_handshake()
OpenSSL.SSL.Error: [('SSL routines', 'ssl3_get_server_certificate', 'certificate verify failed')]

OpenSSL.test.test_ssl.ContextTests.test_load_verify_directory
===============================================================================
[ERROR]
Traceback (most recent call last):
  File "/usr/lib64/python2.7/unittest/case.py", line 369, in run
    testMethod()
  File "/usr/lib64/python2.7/site-packages/OpenSSL/test/test_ssl.py", line 604, in test_load_verify_file
    self._load_verify_locations_test(cafile)
  File "/usr/lib64/python2.7/site-packages/OpenSSL/test/test_ssl.py", line 588, in _load_verify_locations_test
    handshake(clientSSL, serverSSL)
  File "/usr/lib64/python2.7/site-packages/OpenSSL/test/test_ssl.py", line 109, in handshake
    conn.do_handshake()
OpenSSL.SSL.Error: [('SSL routines', 'ssl3_get_server_certificate', 'certificate verify failed')]

OpenSSL.test.test_ssl.ContextTests.test_load_verify_file
===============================================================================


Expected results:
    test_load_verify_directory ...                                         [OK]
    test_load_verify_file ...                                              [OK]


Additional info:

Running the test with datefudge gives expected results:
datefudge 2017-01-01 trial /usr/lib64/python2.7/site-packages/OpenSSL/test/test_ssl.py

However, there are more bugs in upstream testsuite, see bz1155460.

Comment 6 errata-xmlrpc 2018-10-30 09:48:30 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2018:3106


Note You need to log in before you can comment on or make changes to this bug.