You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
test.test_httplib.HTTPSTest.test_networked_good_cert fails with OpenSSL 4.1.0 #160823
======================================================================
ERROR: test_networked_good_cert (test.test_httplib.HTTPSTest.test_networked_good_cert)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/usr/lib/python3.15/test/test_httplib.py", line 2247, in test_networked_good_cert
h.request('GET', '/')
~~~~~~~~~^^^^^^^^^^^^
File "/usr/lib/python3.15/http/client.py", line 1398, in requestself._send_request(method, url, body, headers, encode_chunked)
~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.15/http/client.py", line 1444, in _send_requestself.endheaders(body, encode_chunked=encode_chunked)
~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.15/http/client.py", line 1393, in endheadersself._send_output(message_body, encode_chunked=encode_chunked)
~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.15/http/client.py", line 1153, in _send_outputself.send(msg)
~~~~~~~~~^^^^^
File "/usr/lib/python3.15/http/client.py", line 1097, in sendself.connect()
~~~~~~~~~~~~^^
File "/usr/lib/python3.15/http/client.py", line 1543, in connectself.sock =self._context.wrap_socket(self.sock,
~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^
server_hostname=server_hostname)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.15/ssl.py", line 469, in wrap_socketreturnself.sslsocket_class._create(
~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
sock=sock,
^^^^^^^^^^...<5 lines>...
session=session
^^^^^^^^^^^^^^^
)
^
File "/usr/lib/python3.15/ssl.py", line 1103, in _createself.do_handshake()
~~~~~~~~~~~~~~~~~^^
File "/usr/lib/python3.15/ssl.py", line 1434, in do_handshakeself._sslobj.do_handshake()
~~~~~~~~~~~~~~~~~~~~~~~~~^^ssl.SSLCertVerificationError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: Hostname mismatch, certificate is not valid for 'self-signed.pythontest.net'. (_ssl.c:1147)
----------------------------------------------------------------------
Apparently this is caused by an intentional change in OpenSSL, see openssl/openssl#33420.
I guess we need to update the way generated certificates or update the test accordingly. But this also means that we could incorrectly (or not) reject certificates in the wild (I haven't looked at the OSSL issue in details though)
Activity
picnixz commentedon Oct 28, 2026
I guess we need to update the way generated certificates or update the test accordingly. But this also means that we could incorrectly (or not) reject certificates in the wild (I haven't looked at the OSSL issue in details though)