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 <rep...@bugs.python.org>
<http://bugs.python.org/issue23843>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to