Kurt Roeckx added the comment:

So this seems to be a function that just gets the certificate?  You need to be 
careful with this since a server could perfectly decide to send a different 
certificate depending on the client hello it receives.  Like if you support 
ECDSA it might decide to send you the ECDSA certificate instead of the RSA 
certificate.  Or maybe you're even connecting to a different IP address?

In any case, you should always use SSLv23, stop supporting anything else.

----------

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

Reply via email to