Title: `test_ssl.test_min_max_version` fails when OpenSSL has TLS 1.0/1.1 disabled. · Issue #144787 · python/cpython · GitHub
Open Graph Title: `test_ssl.test_min_max_version` fails when OpenSSL has TLS 1.0/1.1 disabled. · Issue #144787 · python/cpython
X Title: `test_ssl.test_min_max_version` fails when OpenSSL has TLS 1.0/1.1 disabled. · Issue #144787 · python/cpython
Description: Bug report Bug description: The test_min_max_version test in test_ssl.py fails on systems where OpenSSL is compiled with no-tls1 and no-tls1_1 options. TLS 1.0 and 1.1 have been deprecated by the IETF since 2021. Disabling TLS v1 and v1....
Open Graph Description: Bug report Bug description: The test_min_max_version test in test_ssl.py fails on systems where OpenSSL is compiled with no-tls1 and no-tls1_1 options. TLS 1.0 and 1.1 have been deprecated by the I...
X Description: Bug report Bug description: The test_min_max_version test in test_ssl.py fails on systems where OpenSSL is compiled with no-tls1 and no-tls1_1 options. TLS 1.0 and 1.1 have been deprecated by the I...
Opengraph URL: https://github.com/python/cpython/issues/144787
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"`test_ssl.test_min_max_version` fails when OpenSSL has TLS 1.0/1.1 disabled.","articleBody":"# Bug report\n\n### Bug description:\n\n\nThe `test_min_max_version` test in `test_ssl.py` fails on systems where OpenSSL is compiled with `no-tls1` and `no-tls1_1` options. TLS 1.0 and 1.1 have been deprecated by the IETF since 2021. Disabling TLS v1 and v1.1 is a legitimate configuration used for security-hardened builds.\n\nThe following assertion in `test_min_max_version` expects `ctx.maximum_version` to be in the set `{TLSv1, TLSv1_1, SSLv3}` when set to `MINIMUM_SUPPORTED`. However, on systems where v1.0 and v1.1 are disabled, OpenSSL picks to the next available lowest version, which is TLS v1.2.\n\n```python\nctx.maximum_version = ssl.TLSVersion.MINIMUM_SUPPORTED\nself.assertIn(\n ctx.maximum_version,\n {ssl.TLSVersion.TLSv1, ssl.TLSVersion.TLSv1_1, ssl.TLSVersion.SSLv3}\n)\n```\n\nI was able to fix the test by adding `ssl.TLSVersion.TLSv1_2` to the set. I can submit a pull request adding this option to the set if that's the best solution, but I'm also happy to discuss alternatives.\n\n\n### CPython versions tested on:\n\n3.14\n\n### Operating systems tested on:\n\nLinux\n\n\u003c!-- gh-linked-prs -->\n### Linked PRs\n* gh-144790\n* gh-144791\n* gh-144792\n\u003c!-- /gh-linked-prs -->\n","author":{"url":"https://github.com/colin-pm","@type":"Person","name":"colin-pm"},"datePublished":"2026-02-13T15:57:35Z","url":"https://github.com/python/cpython/issues/144787"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| 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:52f99682-f11f-167a-e531-8db09c92a327 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | D1EE:8AE25:1DD0D9E:276AB6A:6B0231B8 |
| html-safe-nonce | 47c08024d456acf8f49ceb5e9aa16f16461be3e28d7d912aadb8be6c28688586 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEMUVFOjhBRTI1OjFERDBEOUU6Mjc2QUI2QTo2QjAyMzFCOCIsInZpc2l0b3JfaWQiOiIxNDE2MDk5NjczMzIzNzQ1NzIwIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 1149168266fae11dcf2baa1d35570488e3ecb49705c21d10e8e5b9486580cf64 |
| hovercard-subject-tag | issue:3937852983 |
| 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/144787/issue_layout |
| twitter:image | https://opengraph.githubassets.com/df4b60006d2969c60ae3eab5a655c25261351c7e5289542bdd36a17af21403b9/python/cpython/issues/144787 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/df4b60006d2969c60ae3eab5a655c25261351c7e5289542bdd36a17af21403b9/python/cpython/issues/144787 |
| og:image:alt | Bug report Bug description: The test_min_max_version test in test_ssl.py fails on systems where OpenSSL is compiled with no-tls1 and no-tls1_1 options. TLS 1.0 and 1.1 have been deprecated by the I... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | colin-pm |
| hostname | github.com |
| expected-hostname | github.com |
| None | 87e774ee7c6b3bee0490394e4d3e57ec9dbc956f74b87ea685dc8996c1676456 |
| 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 | 423dbb54c5e7bfecc838eb387c1435eb3d0e760d |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width