]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-144249: Report filename in SSLContext.load_cert_chain errors (#144250)
authorRomuald Brunet <romuald@chivil.com>
Wed, 28 Jan 2026 10:20:51 +0000 (11:20 +0100)
committerGitHub <noreply@github.com>
Wed, 28 Jan 2026 10:20:51 +0000 (11:20 +0100)
commit1a637b29aa1d1e96a5be14f520160caf04e8ee16
treed5649dd5e0a0634da8d12b8d6cfb011153618d1b
parent6ea3f8cd7ff4ff9769ae276dabc0753e09dca998
gh-144249: Report filename in SSLContext.load_cert_chain errors (#144250)

When user tries to load a certificate chain, attach the related
filename to the exception being raised. Improving user experience.

Co-authored-by: Victor Stinner <vstinner@python.org>
Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
Lib/test/test_ssl.py
Misc/NEWS.d/next/Library/2026-01-27-09-58-52.gh-issue-144249.mCIy95.rst [new file with mode: 0644]
Modules/_ssl.c