[issue5639] Support TLS SNI extension in ssl module

Antoine Pitrou report at bugs.python.org
Sun May 23 13:53:41 CEST 2010


Antoine Pitrou <pitrou at free.fr> added the comment:

> ctx = ssl.SSLContext(ssl.PROTOCOL_TLSv1)
> ctx.set_tlsext_host_name("foo.bar")

Well, the hostname should be specific to a connection, so I'm not sure it makes sense to set it on the context.
(besides, the OpenSSL APIs only allow it to be set on the SSL structure)

----------

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


More information about the Python-bugs-list mailing list