Mathieu Pasquet added the comment:

>Maybe
>transport.get_extra_info('socket').getpeercert(True)
>would be okay, no patch needed?

Thanks, that indeed works; I don't know why I missed it while reading the 
source. Maybe the docs could use some clarification, though? (users are not 
supposed to know that _SelectorTransport is subclassed by 
_SelectorSslTransport, which thus gets the extra info of both)

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue22768>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to