René's URL Explorer Experiment


Title: Possibly unintentional change in ssl (cert_reqs=CERT_NONE does not allow check_hostname=True) since 3.10 · Issue #114905 · python/cpython · GitHub

Open Graph Title: Possibly unintentional change in ssl (cert_reqs=CERT_NONE does not allow check_hostname=True) since 3.10 · Issue #114905 · python/cpython

X Title: Possibly unintentional change in ssl (cert_reqs=CERT_NONE does not allow check_hostname=True) since 3.10 · Issue #114905 · python/cpython

Description: There is a possibly unintentional effect of #25455. In Python 3.9: >>> import ssl >>> ssl._create_stdlib_context(ssl.PROTOCOL_TLSv1_2, cert_reqs=ssl.CERT_NONE, check_hostname=True) In Python 3.10...

Open Graph Description: There is a possibly unintentional effect of #25455. In Python 3.9: >>> import ssl >>> ssl._create_stdlib_context(ssl.PROTOCOL_TLSv1_2, cert_reqs=ssl.CERT_NONE, check_hostname=True)

X Description: There is a possibly unintentional effect of #25455. In Python 3.9: >>> import ssl >>> ssl._create_stdlib_context(ssl.PROTOCOL_TLSv1_2, cert_reqs=ssl.CERT_NONE, check_hostname=True...

Opengraph URL: https://github.com/python/cpython/issues/114905

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Possibly unintentional change in ssl (cert_reqs=CERT_NONE does not allow check_hostname=True) since 3.10","articleBody":"There is a possibly unintentional effect of #25455.\r\n\r\nIn Python 3.9:\r\n```pycon\r\n>>> import ssl\r\n>>> ssl._create_stdlib_context(ssl.PROTOCOL_TLSv1_2, cert_reqs=ssl.CERT_NONE, check_hostname=True)\r\n\u003cssl.SSLContext object at 0x7f93d68253c0>\r\n```\r\n\r\nIn Python 3.10:\r\n```pycon\r\n>>> import ssl\r\n>>> ssl._create_stdlib_context(ssl.PROTOCOL_TLSv1_2, cert_reqs=ssl.CERT_NONE, check_hostname=True)\r\n/home/serhiy/py/cpython3.10/Lib/ssl.py:806: DeprecationWarning: ssl.PROTOCOL_TLSv1_2 is deprecated\r\n  context = SSLContext(protocol)\r\nTraceback (most recent call last):\r\n  File \"\u003cstdin>\", line 1, in \u003cmodule>\r\n  File \"/home/serhiy/py/cpython3.10/Lib/ssl.py\", line 809, in _create_unverified_context\r\n    context.verify_mode = cert_reqs\r\n  File \"/home/serhiy/py/cpython3.10/Lib/ssl.py\", line 738, in verify_mode\r\n    super(SSLContext, SSLContext).verify_mode.__set__(self, value)\r\nValueError: Cannot set verify_mode to CERT_NONE when check_hostname is enabled.\r\n```\r\n\r\nThis code not only emits a DeprecationWarning (it was expected), but also raises a ValueError.\r\n\r\nThis change left a confusing remnant in the code (see #103625) which can be safely deleted if this change was intentional. But this corner case is not covered by tests, this effect was not documented, so it is not known whether it was intentional change or error.\r\n\r\ncc @tiran\r\n\n\n\u003c!-- gh-linked-prs -->\n### Linked PRs\n* gh-155509\n* gh-155670\n* gh-155671\n* gh-155672\n\u003c!-- /gh-linked-prs -->\n","author":{"url":"https://github.com/serhiy-storchaka","@type":"Person","name":"serhiy-storchaka"},"datePublished":"2024-02-02T12:00:43Z","url":"https://github.com/python/cpython/issues/114905"}

react-profiling0
react-import-mapreact,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-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:5c75d85a-cebc-85c3-5790-861b946a15ff
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idA8CA:1F2F:1AA5B79:236342F:6B0209CF
html-safe-nonce18dbba5ef7f1e4f93c37df1d05dd9ea873d7cb44ec565da444b89511911065fe
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBOENBOjFGMkY6MUFBNUI3OToyMzYzNDJGOjZCMDIwOUNGIiwidmlzaXRvcl9pZCI6IjExNDA1NzM3NTg4OTM5ODQyMDciLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac155502e705e77b9330fb0b5b165084623ef5b14229ac4b01f99d0584b70555ce
hovercard-subject-tagissue:2114776457
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/python/cpython/114905/issue_layout
twitter:imagehttps://opengraph.githubassets.com/92e715fbd3946aad3fe2ddc1e94171acb72a3f879b3e40321a27e346a83cb802/python/cpython/issues/114905
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/92e715fbd3946aad3fe2ddc1e94171acb72a3f879b3e40321a27e346a83cb802/python/cpython/issues/114905
og:image:altThere is a possibly unintentional effect of #25455. In Python 3.9: >>> import ssl >>> ssl._create_stdlib_context(ssl.PROTOCOL_TLSv1_2, cert_reqs=ssl.CERT_NONE, check_hostname=True)
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameserhiy-storchaka
hostnamegithub.com
expected-hostnamegithub.com
None87e774ee7c6b3bee0490394e4d3e57ec9dbc956f74b87ea685dc8996c1676456
turbo-cache-controlno-preview
go-importgithub.com/python/cpython git https://github.com/python/cpython.git
octolytics-dimension-user_id1525981
octolytics-dimension-user_loginpython
octolytics-dimension-repository_id81598961
octolytics-dimension-repository_nwopython/cpython
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id81598961
octolytics-dimension-repository_network_root_nwopython/cpython
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release423dbb54c5e7bfecc838eb387c1435eb3d0e760d
ui-targetcanary-2
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/python/cpython/issues/114905#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fissues%2F114905
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fissues%2F114905
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=python%2Fcpython
Reloadhttps://github.com/python/cpython/issues/114905
Reloadhttps://github.com/python/cpython/issues/114905
Reloadhttps://github.com/python/cpython/issues/114905
pythonhttps://github.com/python
cpythonhttps://github.com/python/cpython
Codehttps://github.com/python/cpython
Issues5k+ (5k+)https://github.com/python/cpython/issues
Pull requests2.4k (2.4k)https://github.com/python/cpython/pulls
Actionshttps://github.com/python/cpython/actions
Projectshttps://github.com/python/cpython/projects
Security and qualityhttps://github.com/python/cpython/security
Insightshttps://github.com/python/cpython/insights
https://github.com/python/cpython
New issuehttps://github.com/login?return_to=https://github.com/python/cpython/issues/114905
New issuehttps://github.com/login?return_to=https://github.com/python/cpython/issues/114905
Possibly unintentional change in ssl (cert_reqs=CERT_NONE does not allow check_hostname=True) since 3.10https://github.com/python/cpython/issues/114905#top
3.11only security fixeshttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%223.11%22
3.12only security fixeshttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%223.12%22
3.13only security fixeshttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%223.13%22
3.14bugs and security fixeshttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%223.14%22
3.15bugs and security fixeshttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%223.15%22
3.16new features, bugs and security fixeshttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%223.16%22
topic-SSLhttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22topic-SSL%22
https://github.com/serhiy-storchaka
serhiy-storchakahttps://github.com/serhiy-storchaka
on Feb 2, 2024https://github.com/python/cpython/issues/114905#issue-2114776457
#25455https://github.com/python/cpython/pull/25455
#103625https://github.com/python/cpython/pull/103625
@tiranhttps://github.com/tiran
gh-114905: Test that ssl._create_stdlib_context() rejects check_hostname with CERT_NONE #155509https://github.com/python/cpython/pull/155509
[3.13] gh-114905: Test that ssl._create_stdlib_context() rejects check_hostname with CERT_NONE (GH-155509) #155670https://github.com/python/cpython/pull/155670
[3.14] gh-114905: Test that ssl._create_stdlib_context() rejects check_hostname with CERT_NONE (GH-155509) #155671https://github.com/python/cpython/pull/155671
[3.15] gh-114905: Test that ssl._create_stdlib_context() rejects check_hostname with CERT_NONE (GH-155509) #155672https://github.com/python/cpython/pull/155672
serhiy-storchakahttps://github.com/serhiy-storchaka
3.11only security fixeshttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%223.11%22
3.12only security fixeshttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%223.12%22
3.13only security fixeshttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%223.13%22
on Feb 2, 2024https://github.com/python/cpython/issues/114905#event-11683239898
serhiy-storchakahttps://github.com/serhiy-storchaka
OpenSSL 3https://github.com/orgs/python/projects/28
on Feb 2, 2024https://github.com/python/cpython/issues/114905#event-14883853988
Eclips4https://github.com/Eclips4
topic-SSLhttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22topic-SSL%22
on Feb 2, 2024https://github.com/python/cpython/issues/114905#event-11684207853
https://github.com/mbyrnepr2
mbyrnepr2https://github.com/mbyrnepr2
on Aug 26, 2025https://github.com/python/cpython/issues/114905#issuecomment-3224163666
serhiy-storchakahttps://github.com/serhiy-storchaka
3.14bugs and security fixeshttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%223.14%22
3.15bugs and security fixeshttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%223.15%22
3.16new features, bugs and security fixeshttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%223.16%22
on Jun 10, 2026https://github.com/python/cpython/issues/114905#event-26586348668
https://github.com/vstinner
vstinnerhttps://github.com/vstinner
on Jun 10, 2026https://github.com/python/cpython/issues/114905#issuecomment-4674380737
1aa9a75https://github.com/python/cpython/commit/1aa9a75fbff2333fd07574e3de8710c629483258
2875c60https://github.com/python/cpython/commit/2875c603b2a7691b55c2046aca54831c91efda8e
gpsheadhttps://github.com/gpshead
on Jun 10, 2026https://github.com/python/cpython/issues/114905#event-26600175172
https://github.com/gpshead
gpsheadhttps://github.com/gpshead
on Jun 10, 2026https://github.com/python/cpython/issues/114905#issuecomment-4675725631
https://github.com/serhiy-storchaka
serhiy-storchakahttps://github.com/serhiy-storchaka
on Jun 11, 2026https://github.com/python/cpython/issues/114905#issuecomment-4678011236
https://github.com/serhiy-storchaka
serhiy-storchakahttps://github.com/serhiy-storchaka
on Aug 10, 2026https://github.com/python/cpython/issues/114905#issuecomment-5244385339
#103625https://github.com/python/cpython/pull/103625
serhiy-storchakahttps://github.com/serhiy-storchaka
on Aug 10, 2026https://github.com/python/cpython/issues/114905#event-29242110345
gh-114905: Remove redundant assignment in ssl._create_unverified_cont…https://github.com/python/cpython/commit/7571c41da7505e6b551dae305b285af2a9139771
gh-114905https://github.com/python/cpython/issues/114905
7571c41https://github.com/python/cpython/commit/7571c41da7505e6b551dae305b285af2a9139771
gh-114905: Test that ssl._create_stdlib_context() rejects check_hostn…https://github.com/python/cpython/commit/726e48565670e56affd3e6d461871ec20ee12694
gh-114905https://github.com/python/cpython/issues/114905
726e485https://github.com/python/cpython/commit/726e48565670e56affd3e6d461871ec20ee12694
[3.13] gh-114905: Test that ssl._create_stdlib_context() rejects chec…https://github.com/python/cpython/commit/427dfa6bb436fe267f74aac55a8ecd3d861ab107
gh-114905https://github.com/python/cpython/issues/114905
427dfa6https://github.com/python/cpython/commit/427dfa6bb436fe267f74aac55a8ecd3d861ab107
[3.14] gh-114905: Test that ssl._create_stdlib_context() rejects chec…https://github.com/python/cpython/commit/5f0ce4461af2ee24fbc60f45f466ce8e348b9189
gh-114905https://github.com/python/cpython/issues/114905
5f0ce44https://github.com/python/cpython/commit/5f0ce4461af2ee24fbc60f45f466ce8e348b9189
serhiy-storchakahttps://github.com/serhiy-storchaka
completedhttps://github.com/python/cpython/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
on Aug 13, 2026https://github.com/python/cpython/issues/114905#event-29393283165
github-project-automationhttps://github.com/apps/github-project-automation
OpenSSL 3https://github.com/orgs/python/projects/28
on Aug 13, 2026https://github.com/python/cpython/issues/114905
mbeijenhttps://github.com/mbeijen
on Aug 14, 2026https://github.com/python/cpython/issues/114905#event-29455505136
pythongh-114905: Remove redundant assignment in ssl._create_unverifie…https://github.com/mbeijen/cpython/commit/43c8ebacfabd9b097447f6824e248da45bf21cf5
pythongh-114905https://github.com/python/cpython/issues/114905
43c8ebahttps://github.com/mbeijen/cpython/commit/43c8ebacfabd9b097447f6824e248da45bf21cf5
pythongh-114905: Test that ssl._create_stdlib_context() rejects check…https://github.com/mbeijen/cpython/commit/02db0d2805fc6f056429d2986d3dfedcdccb99ea
pythongh-114905https://github.com/python/cpython/issues/114905
02db0d2https://github.com/mbeijen/cpython/commit/02db0d2805fc6f056429d2986d3dfedcdccb99ea
serhiy-storchakahttps://github.com/serhiy-storchaka
on Oct 10, 2026https://github.com/python/cpython/issues/114905#event-32934604220
[3.15] gh-114905: Test that ssl._create_stdlib_context() rejects chec…https://github.com/python/cpython/commit/c6465bc55e9411f3d898392746cc65a51b546cf5
gh-114905https://github.com/python/cpython/issues/114905
c6465bchttps://github.com/python/cpython/commit/c6465bc55e9411f3d898392746cc65a51b546cf5
Sign up for freehttps://github.com/signup?return_to=https://github.com/python/cpython/issues/114905
Sign in to commenthttps://github.com/login?return_to=https://github.com/python/cpython/issues/114905
3.11only security fixeshttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%223.11%22
3.12only security fixeshttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%223.12%22
3.13only security fixeshttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%223.13%22
3.14bugs and security fixeshttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%223.14%22
3.15bugs and security fixeshttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%223.15%22
3.16new features, bugs and security fixeshttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%223.16%22
topic-SSLhttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22topic-SSL%22
OpenSSL 3https://github.com/orgs/python/projects/28
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.