Christian Heimes added the comment:
I would accept a patch that adds a ssl_context argument to
get_server_certificate().
--
status: open -> pending
versions: +Python 3.6, Python 3.7 -Python 3.4, Python 3.5
___
Python tracker
Antoine Pitrou added the comment:
To be frank, it's quite easy to open the connection and read the cert yourself,
so I don't think complicating this API is very useful.
Still, I'm leaving this open so that other developers can chime in.
--
nosy: +christian.heimes, dstufft,
Derek Wilson added the comment:
any thoughts on this? there's a lot of room for improvement in python ssl...
--
versions: +Python 3.5
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18616
___
New submission from Derek Wilson:
ssl.get_server_certificate does not allow advanced options like what ciphers to
use (for ssl2 for instance) or SNI for virtual hosts with multiple ssl sites on
one IP address.
Adding **kwargs enables any current and future SSLSocket options to be passed