Title: Add support in SSL module for getting/setting TLS 1.3 cipher suites · Issue #137197 · python/cpython · GitHub
Open Graph Title: Add support in SSL module for getting/setting TLS 1.3 cipher suites · Issue #137197 · python/cpython
X Title: Add support in SSL module for getting/setting TLS 1.3 cipher suites · Issue #137197 · python/cpython
Description: Add support in SSL module for getting/setting TLS 1.3 cipher suites Proposal: This feature proposal is a follow-on to issue #136306, adding the ability to control TLS 1.3 cipher suites. The existing Python SSLContext class has a method t...
Open Graph Description: Add support in SSL module for getting/setting TLS 1.3 cipher suites Proposal: This feature proposal is a follow-on to issue #136306, adding the ability to control TLS 1.3 cipher suites. The existin...
X Description: Add support in SSL module for getting/setting TLS 1.3 cipher suites Proposal: This feature proposal is a follow-on to issue #136306, adding the ability to control TLS 1.3 cipher suites. The existin...
Opengraph URL: https://github.com/python/cpython/issues/137197
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Add support in SSL module for getting/setting TLS 1.3 cipher suites","articleBody":"# Add support in SSL module for getting/setting TLS 1.3 cipher suites\n\n### Proposal:\n\nThis feature proposal is a follow-on to issue #136306, adding the ability to control TLS 1.3 cipher suites. The existing Python SSLContext class has a method to set ciphers, but it is specifically documented that it can only be used to set cipher suites from TLS 1.2 and earlier. OpenSSL has added a different function for setting TLS 1.3 ciphers, and this feature would add a wrapper around that which looks like:\n\n```python\n SSLContext.set_ciphersuites(ciphersuites: str) -\u003e None:\n \"\"\"Set the TLS 1.3 cipher suites for sockets created with this context.\"\"\"\n```\n\nThis function mirrors `SSLContext.set_ciphers(ciphers: str)` which exists today for setting TLS 1.2 and earlier cipher suites. In addition, the existing `SSLSocket.cipher()` method can properly return the selected cipher after the TLS handshake has completed on a connection for both TLS 1.3 and earlier TLS versions, so no changes are required to that.\n\nThis feature will also update the documentation for `SSLContext.set_ciphers` and the section of the docs discussing TLS 1.3 support to reflect the new capability.\n\n### Links to previous discussion of this feature:\n\nThis was previously discussed in PR #136307, in the context of continuing to improve Python's TLS 1.3 support.\n\n\u003c!-- gh-linked-prs --\u003e\n### Linked PRs\n* gh-137198\n\u003c!-- /gh-linked-prs --\u003e\n","author":{"url":"https://github.com/ronf","@type":"Person","name":"ronf"},"datePublished":"2025-07-29T04:48:01.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/137197/cpython/issues/137197"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:1fb02e72-12ea-630c-8518-c5285c710e6f |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | A0B0:2B1AB1:1D4AD42:266CEC6:696B3F7C |
| html-safe-nonce | 42f6554f3555745c1eb88324ca5d2e767a3f88b20f720dbb8a4611e853d0bc3b |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBMEIwOjJCMUFCMToxRDRBRDQyOjI2NkNFQzY6Njk2QjNGN0MiLCJ2aXNpdG9yX2lkIjoiODY5NTQ2NjUxMDA3NjU1OTIyOCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 4771eec9e2d4b37436a709e33d0f23446179510466de6834749297200b0ee9f1 |
| hovercard-subject-tag | issue:3272053704 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/python/cpython/137197/issue_layout |
| twitter:image | https://opengraph.githubassets.com/952a8866aae742ed4cc7635d4342b0762f667c064506d54d835cae455056fc61/python/cpython/issues/137197 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/952a8866aae742ed4cc7635d4342b0762f667c064506d54d835cae455056fc61/python/cpython/issues/137197 |
| og:image:alt | Add support in SSL module for getting/setting TLS 1.3 cipher suites Proposal: This feature proposal is a follow-on to issue #136306, adding the ability to control TLS 1.3 cipher suites. The existin... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | ronf |
| hostname | github.com |
| expected-hostname | github.com |
| None | 5f99f7c1d70f01da5b93e5ca90303359738944d8ab470e396496262c66e60b8d |
| turbo-cache-control | no-preview |
| go-import | github.com/python/cpython git https://github.com/python/cpython.git |
| octolytics-dimension-user_id | 1525981 |
| octolytics-dimension-user_login | python |
| octolytics-dimension-repository_id | 81598961 |
| octolytics-dimension-repository_nwo | python/cpython |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 81598961 |
| octolytics-dimension-repository_network_root_nwo | python/cpython |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 82560a55c6b2054555076f46e683151ee28a19bc |
| ui-target | canary-1 |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width