Repository navigation
Closed
Labels
3.7 (EOL)end of life3.8 (EOL)end of life3.9 (EOL)end of lifedocsDocumentation in the Doc dirtype-featureA feature request or enhancement
Description
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
assignee = None
closed_at = <Date 2019-09-12.11:25:55.622>
created_at = <Date 2017-11-11.19:36:05.589>
labels = ['3.8', 'type-feature', '3.7', '3.9', 'docs']
title = 'Example suggest to use a TLSv1 socket'
updated_at = <Date 2019-09-12.11:25:55.620>
user = 'https://bugs.python.org/kroeckx'bugs.python.org fields:
activity = <Date 2019-09-12.11:25:55.620>
actor = 'matrixise'
assignee = 'docs@python'
closed = True
closed_date = <Date 2019-09-12.11:25:55.622>
closer = 'matrixise'
components = ['Documentation']
creation = <Date 2017-11-11.19:36:05.589>
creator = 'kroeckx'
dependencies = []
files = []
hgrepos = []
issue_num = 32008
keywords = ['patch']
message_count = 13.0
messages = ['306093', '312449', '312465', '312467', '312468', '312469', '312483', '312484', '339855', '352109', '352117', '352122', '352123']
nosy_count = 7.0
nosy_names = ['christian.heimes', 'benjamin.peterson', 'docs@python', 'matrixise', 'kroeckx', 'cheryl.sabella', 'miss-islington']
pr_nums = ['5789', '5790', '5791', '5792', '5797', '16026', '16027']
priority = 'normal'
resolution = 'fixed'
stage = 'resolved'
status = 'closed'
superseder = None
type = 'enhancement'
url = 'https://bugs.python.org/issue32008'
versions = ['Python 3.7', 'Python 3.8', 'Python 3.9']Metadata
Metadata
Assignees
Labels
3.7 (EOL)end of life3.8 (EOL)end of life3.9 (EOL)end of lifedocsDocumentation in the Doc dirtype-featureA feature request or enhancement
Activity
kroeckx commentedon Nov 11, 2017
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.)
csabella commentedon Feb 21, 2018
Christian,
Would you have any feedback on this? Thanks!
benjaminp commentedon Feb 21, 2018
New changeset e9edee0 by Benjamin Peterson in branch 'master':
bpo-32008: don't use PROTOCOL_TLSv1 in example (GH-5789)
e9edee0
miss-islington commentedon Feb 21, 2018
New changeset e5d38de by Miss Islington (bot) in branch '3.7':
bpo-32008: don't use PROTOCOL_TLSv1 in example (GH-5789)
e5d38de
miss-islington commentedon Feb 21, 2018
New changeset f8a794c by Miss Islington (bot) in branch '3.6':
bpo-32008: don't use PROTOCOL_TLSv1 in example (GH-5789)
f8a794c
benjaminp commentedon Feb 21, 2018
New changeset 6c7edba by Benjamin Peterson in branch '2.7':
[2.7] closes bpo-32008: don't use PROTOCOL_TLSv1 in example (GH-5789) (bpo-5792)
6c7edba
tiran commentedon Feb 21, 2018
For 3.6 to 3.8 I'd prefer TLS_PROTOCOL_CLIENT. It also sets check_hostname and verify_mode to sane, safe values, too.
tiran commentedon Feb 21, 2018
Err, I meant PROTOCOL_TLS_CLIENT:
csabella commentedon Apr 10, 2019
@christian.heimes, this one looks ready to merge and close. Please take a look when you get a chance. Thanks!
matrixise commentedon Sep 12, 2019
New changeset 894d0f7 by Stéphane Wirtel (Christian Heimes) in branch 'master':
bpo-32008: Prefer client or TLSv1_2 in examples (GH-5797)
894d0f7
matrixise commentedon Sep 12, 2019
New changeset 07b4148 by Stéphane Wirtel (Miss Islington (bot)) in branch '3.7':
bpo-32008: Prefer client or TLSv1_2 in examples (GH-5797) (GH-16026)
07b4148
matrixise commentedon Sep 12, 2019
New changeset 1fc84b6 by Stéphane Wirtel in branch '3.8':
[3.8] bpo-32008: Prefer client or TLSv1_2 in examples (GH-5797) (GH-16027)
1fc84b6
matrixise commentedon Sep 12, 2019
Hi,
I have merged the PR of Christian for master, 3.8 & 3.7
Thank you so much,