[docs] [issue23843] ssl.wrap_socket doesn't handle virtual TLS hosts

John Nagle report at bugs.python.org
Thu Apr 2 10:03:25 CEST 2015


John Nagle added the comment:

I'm using wrap_socket because I want to read the details of a server's SSL certificate.  

"Starting from Python 3.2, it can be more flexible to use SSLContext.wrap_socket() instead" does not convey that ssl.wrap_socket() will fail to connect to some servers because it will silently check the wrong certificate.

----------

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


More information about the docs mailing list