classification
Title: Example suggest to use a TLSv1 socket
Type: enhancement Stage:
Components: Documentation Versions:
process
Status: open Resolution:
Dependencies: Superseder:
Assigned To: docs@python Nosy List: docs@python, kroeckx
Priority: normal Keywords:

Created on 2017-11-11 19:36 by kroeckx, last changed 2017-11-11 19:36 by kroeckx.

Messages (1)
msg306093 - (view) Author: Kurt Roeckx (kroeckx) * Date: 2017-11-11 19:36
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.)
History
Date User Action Args
2017-11-11 19:36:05kroeckxcreate