[issue32008] Example suggest to use a TLSv1 socket

Kurt Roeckx report at bugs.python.org
Sat Nov 11 14:36:05 EST 2017


New submission from Kurt Roeckx <kurt at roeckx.be>:

Here:
https://docs.python.org/3/library/ssl.html#ssl.SSLContext.check_hostname

And here:
https://docs.python.org/2/library/ssl.html#ssl.SSLContext.check_hostname

It uses ssl.PROTOCOL_TLSv1, which is a bad example. Please change it to PROTOCOL_SSLv23 or PROTOCOL_TLS.

(Those were the first 2 examples I could find via google on how to create an ssl connection using python.)

----------
assignee: docs at python
components: Documentation
messages: 306093
nosy: docs at python, kroeckx
priority: normal
severity: normal
status: open
title: Example suggest to use a TLSv1 socket
type: enhancement

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


More information about the Python-bugs-list mailing list