[New-bugs-announce] [issue28958] Python should return comperhansive error when SSLContext cannot be created
Ilya Kulakov
report at bugs.python.org
Tue Dec 13 01:55:01 EST 2016
New submission from Ilya Kulakov:
When SSLContext cannot be created, python raises an SSLError exception with "failed to allocate SSL context".
https://hg.python.org/cpython/file/4def2a2901a5/Modules/_ssl.c#l2260
This is completely useless to debug the error. In fact many errors raised from _ssl.c are non-helpful.
Python's SSLError should be extended to include comprehensive information about OpenSSL's error stack which can be extracted with `ERR_get_error_line`.
----------
assignee: christian.heimes
components: SSL
messages: 283078
nosy: Ilya.Kulakov, christian.heimes
priority: normal
severity: normal
status: open
title: Python should return comperhansive error when SSLContext cannot be created
type: enhancement
versions: Python 3.5, Python 3.6
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue28958>
_______________________________________
More information about the New-bugs-announce
mailing list