[New-bugs-announce] [issue25214] asyncio ssl transport regression

Andrew Svetlov report at bugs.python.org
Tue Sep 22 16:16:37 CEST 2015


New submission from Andrew Svetlov:

Before using SSL BIO (which is great itself BTW) I has a way to access peers certificate by `ssl_transp.get_extra_info('socket').getpeercert()` call.

Now socket is a regular socket without `.getpeercert()` method.
I use hack like `ssl_transp._ssl_protocol._sslpipe.ssl_object.getpeercert()` as workaround but really interesting in the proper way to do this using public API only.

I suggest adding 'ssl_object' key to `ssl_proto` for BIO-based SSL.

Thoughts?

P.S.
See aiohttp commit for workaround bugfix: https://github.com/KeepSafe/aiohttp/commit/e286d4f9fb1993de2438bdca40712cf1660faf9e

----------
components: asyncio
keywords: 3.5regression
messages: 251323
nosy: asvetlov, gvanrossum, haypo, yselivanov
priority: normal
severity: normal
status: open
title: asyncio ssl transport regression
type: behavior
versions: Python 3.5, Python 3.6

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


More information about the New-bugs-announce mailing list