[docs] [issue32008] Example suggest to use a TLSv1 socket

Christian Heimes report at bugs.python.org
Wed Feb 21 04:45:56 EST 2018


Christian Heimes <lists at cheimes.de> added the comment:

Err, I meant PROTOCOL_TLS_CLIENT:

>>> import ssl
>>> context = ssl.SSLContext(ssl.PROTOCOL_TLS_CLIENT)
>>> context.check_hostname
True
>>> context.verify_mode
<VerifyMode.CERT_REQUIRED: 2>

----------

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue32008>
_______________________________________


More information about the docs mailing list