➜

This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
标题: Add setter and getter for min/max protocol version
类型: enhancement Stage: resolved
Components: SSL Versions: Python 3.8, Python 3.7
process
状态: closed Resolution: duplicate
Dependencies: 后续: Debian Sid/Buster: Cannot enable TLS 1.0/1.1 with PROTOCOL_TLS
View: 31453
分配给: christian.heimes 抄送列表: christian.heimes
优先级: normal 关键字: patch

Created on 2018-01-21 14:00 by christian.heimes, last changed 2022-04-11 14:58 by admin. This issue is now closed.

Pull Requests
URL Status Linked Edit
PR 5259 open christian.heimes, 2018-01-21 14:02
Messages (2)
msg310374 - (view) Author: Christian Heimes (christian.heimes) * (Python committer) 日期: 2018-01-21 14:00
OpenSSL 1.1 has introduced a new API to set the minimum and maximum supported protocol version. The API is easier to use than the old OP_NO_TLSv1 option flags, too

https://www.openssl.org/docs/man1.1.0/ssl/SSL_CTX_set_min_proto_version.html

Debian used the new setters to disable TLS 1.0 and 1.1 in testing, #31453. The old TLS versions have been enabled again for now. Python must expose the new API in case Debian decides to disable them again.

I also like to deprecate the old OP_NO_TLSv1 et al. flags in favor of the new API. The option flags are awkward to use and easy to get wrong. For example applications must not leave holes in the OP_NO range (e.g. allow TLS 1.0 and 1.2 but disable 1.1).
msg312919 - (view) Author: Christian Heimes (christian.heimes) * (Python committer) 日期: 2018-02-26 11:43
bpo-31453 is the Debian issue that made me start to implement the setter and getter for min/max protocol version.
历史
日期 用户 动作 参数
2022-04-11 14:58:56admin修改github: 76790
2018-02-26 11:43:04christian.heimes修改状态: open -> closed

后续: Debian Sid/Buster: Cannot enable TLS 1.0/1.1 with PROTOCOL_TLS
标题: Add setter and getter for min/max protocol ersion -> Add setter and getter for min/max protocol version
消息: + msg312919
versions: + Python 3.8
resolution: duplicate
stage: patch review -> resolved
2018-02-25 20:25:37christian.heimes链接issue27876 superseder
2018-01-21 14:02:47christian.heimes修改keywords: + patch
stage: needs patch -> patch review
pull_requests: + pull_request5106
2018-01-21 14:00:24christian.heimes创建