[New-bugs-announce] [issue22787] ssl.SSLContext.load_cert_chain() backport regression with None as keyfile

Till Maas report at bugs.python.org
Mon Nov 3 16:09:21 CET 2014


New submission from Till Maas:

https://github.com/python/cpython/commit/71a4ee3ea2c6847b9fc4b33cbc8d565a7bf2424a

introduces a regression in ssl.SSLContext.load_cert_chain()

https://github.com/python/cpython/blob/2.7/Modules/_ssl.c#L2462

With this change it is not possible to specify None as keyfile which can 
be triggered on Debian Testing? (there the change is backported) in requests.get("https://example.com", cerf="keycert.pem"). It can also be triggered with the sample code in the attached file. It is fixed in recent python 3.

----------
components: Library (Lib)
files: poc.txt
messages: 230539
nosy: till
priority: normal
severity: normal
status: open
title: ssl.SSLContext.load_cert_chain() backport regression with None as keyfile
type: behavior
versions: Python 2.7
Added file: http://bugs.python.org/file37120/poc.txt

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue22787>
_______________________________________


More information about the New-bugs-announce mailing list