test.test_httplib.HTTPSTest.test_networked_good_cert fails with OpenSSL 4.1.0
維護者通常 1 天內回覆
還沒有人認領這個 Issue。
評估
- 難度
- 3/5
- 預估耗時
- 1-2 天
- 新手友好度
- 56/100
- Issue 類型
- 缺陷
- 描述清晰度
- 基本清楚
- 活躍度
- 活躍
- 技術堆疊
- python
- 領域
- networking, testing
研究方向
Start with test/test_httplib.py, especially HTTPSTest.test_networked_good_cert around the reported failing request, and read the linked OpenSSL issue for the certificate verification change. Determine how the test certificate and hostname interact with OpenSSL 4.1.0; done means the test correctly checks a valid certificate and passes with the changed OpenSSL behavior.
由索引模型根據 Issue 內容生成。
描述
Bug report
======================================================================
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 request
self._send_request(method, url, body, headers, encode_chunked)
~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.15/http/client.py", line 1444, in _send_request
self.endheaders(body, encode_chunked=encode_chunked)
~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.15/http/client.py", line 1393, in endheaders
self._send_output(message_body, encode_chunked=encode_chunked)
~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.15/http/client.py", line 1153, in _send_output
self.send(msg)
~~~~~~~~~^^^^^
File "/usr/lib/python3.15/http/client.py", line 1097, in send
self.connect()
~~~~~~~~~~~~^^
File "/usr/lib/python3.15/http/client.py", line 1543, in connect
self.sock = self._context.wrap_socket(self.sock,
~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^
server_hostname=server_hostname)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.15/ssl.py", line 469, in wrap_socket
return self.sslsocket_class._create(
~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
sock=sock,
^^^^^^^^^^
...<5 lines>...
session=session
^^^^^^^^^^^^^^^
)
^
File "/usr/lib/python3.15/ssl.py", line 1103, in _create
self.do_handshake()
~~~~~~~~~~~~~~~~~^^
File "/usr/lib/python3.15/ssl.py", line 1434, in do_handshake
self._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 https://github.com/openssl/openssl/issues/33420.
CPython versions tested on:
3.15
Operating systems tested on:
Linux
- 主要語言
- Python
- 星號
- 77.8k
- 分支
- 37.7k
- 平均合併
- 17 小時 2 分鐘
- 30 天內合併 PR
- 699
環境準備
在瀏覽器裡用你自己的 GitHub 帳號啟動這個專案的開發容器。
- 沒有 Dockerfile 或 Docker Compose 檔案
- 有 Pull Request 範本
- 閱讀貢獻指南
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
python/cpython 的其他 Issue
-
build OS-unsupported OS-windows type-bug
難度 2/5 1-3 小時 新手友好度 60/100
維護者通常 1 天內回覆
-
What's New in 3.12 credits the unstable C API tier to PEP 697 instead of PEP 689可能已有人在做 @TheLouisMahdi 於 2 天前認領。 未關閉docs
難度 1/5 1 小時以內 新手友好度 82/100
python/cpython#161078 · 3 則留言 ·
維護者通常 1 天內回覆
-
OS-windows type-bug
難度 2/5 1-3 小時 新手友好度 68/100
維護者通常 1 天內回覆
-
docs
難度 2/5 1-3 小時 新手友好度 72/100
python/cpython#161007 · 4 則留言 ·
維護者通常 1 天內回覆
-
Null dereferencing of a pointer in initconfig.c可能已有人在做 @lazerg 於 5 天前認領。 未關閉interpreter-core topic-C-API type-bug
難度 2/5 1-3 小時 新手友好度 72/100
python/cpython#160962 · 4 則留言 ·
維護者通常 1 天內回覆
相似的 Issue
-
難度 2/5 1-3 小時 新手友好度 76/100
microsoft/onnxscript#3155 ·
維護者通常 4 天內回覆
-
bug
難度 2/5 1-3 小時 新手友好度 84/100
維護者通常 1 天內回覆
-
bug docs severity:low
難度 2/5 1-3 小時 新手友好度 78/100
維護者通常 2 天內回覆
-
難度 2/5 1-3 小時 新手友好度 74/100
維護者通常 1 天內回覆
-
docs good first issue
難度 2/5 1-3 小時 新手友好度 76/100