René's URL Explorer Experiment


Title: `ssl.get_server_certificate(addr, ca_certs=...)` verifies the chain but never the identity · Issue #161503 · python/cpython · GitHub

Open Graph Title: `ssl.get_server_certificate(addr, ca_certs=...)` verifies the chain but never the identity · Issue #161503 · python/cpython

X Title: `ssl.get_server_certificate(addr, ca_certs=...)` verifies the chain but never the identity · Issue #161503 · python/cpython

Description: Bug report Doc/library/ssl.rst:411-413 says of ca_certs that "the call will attempt to validate the server certificate against that set of root certificates, and will fail if the validation attempt fails". It validates the chain and neve...

Open Graph Description: Bug report Doc/library/ssl.rst:411-413 says of ca_certs that "the call will attempt to validate the server certificate against that set of root certificates, and will fail if the validation attempt...

X Description: Bug report Doc/library/ssl.rst:411-413 says of ca_certs that "the call will attempt to validate the server certificate against that set of root certificates, and will fail if the validation at...

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

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"`ssl.get_server_certificate(addr, ca_certs=...)` verifies the chain but never the identity","articleBody":"### Bug report\n\n`Doc/library/ssl.rst:411-413` says of ca_certs that \"the call will attempt to validate the server certificate against that set of root certificates, and will fail if the validation attempt fails\". It validates the chain and never checks that the certificate is for the host contacted.\n\n### CPython versions tested on:\n\nCPython main branch\n\n### Operating systems tested on:\n\n_No response_\n\n\u003c!-- gh-linked-prs -->\n### Linked PRs\n* gh-161507\n* gh-161574\n* gh-161575\n* gh-161576\n* gh-161670\n* gh-161671\n\u003c!-- /gh-linked-prs -->\n","author":{"url":"https://github.com/brettcs","@type":"Person","name":"brettcs"},"datePublished":"2026-11-06T16:46:33Z","url":"https://github.com/python/cpython/issues/161503"}

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:743901d9-4192-33a7-b9a8-3f0f81872353
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idAA8E:2AAD2E:34586CF:45DABBF:6B020247
html-safe-nonceabf6c86315321dacec20fffbfafcba223b0ec7afb00fe0f4e1369c0ceaf67756
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBQThFOjJBQUQyRTozNDU4NkNGOjQ1REFCQkY6NkIwMjAyNDciLCJ2aXNpdG9yX2lkIjoiODc2MDIwNjk4MzEwNzMxNDI0NyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmacc3784519d64b826b6615b4a39d618ec30df21fbdf22a2359c59fa50c1d5fdb98
hovercard-subject-tagissue:6246809854
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/161503/issue_layout
twitter:imagehttps://opengraph.githubassets.com/4c1da983b3cf13ec2222a55318948153931c4411c242d648ccc48595e98a98e8/python/cpython/issues/161503
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/4c1da983b3cf13ec2222a55318948153931c4411c242d648ccc48595e98a98e8/python/cpython/issues/161503
og:image:altBug report Doc/library/ssl.rst:411-413 says of ca_certs that "the call will attempt to validate the server certificate against that set of root certificates, and will fail if the validation attempt...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamebrettcs
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-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/python/cpython/issues/161503#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fissues%2F161503
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%2F161503
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/161503
Reloadhttps://github.com/python/cpython/issues/161503
Reloadhttps://github.com/python/cpython/issues/161503
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/161503
New issuehttps://github.com/login?return_to=https://github.com/python/cpython/issues/161503
ssl.get_server_certificate(addr, ca_certs=...) verifies the chain but never the identityhttps://github.com/python/cpython/issues/161503#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
stdlibStandard Library Python modules in the Lib/ directoryhttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22stdlib%22
topic-SSLhttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22topic-SSL%22
type-securityA security issuehttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22type-security%22
https://github.com/brettcs
brettcshttps://github.com/brettcs
on Nov 6, 2026https://github.com/python/cpython/issues/161503#issue-6246809854
gh-161503: Check hostname in ssl.get_server_certificate with custom ca_certs #161507https://github.com/python/cpython/pull/161507
[3.15] gh-161503: Check hostname in ssl.get_server_certificate with custom ca_certs (GH-161507) #161574https://github.com/python/cpython/pull/161574
[3.14] gh-161503: Check hostname in ssl.get_server_certificate with custom ca_certs (GH-161507) #161575https://github.com/python/cpython/pull/161575
[3.13] gh-161503: Check hostname in ssl.get_server_certificate with custom ca_certs (GH-161507) #161576https://github.com/python/cpython/pull/161576
[3.12] gh-161503: Check hostname in ssl.get_server_certificate with custom ca_certs (GH-161507) #161670https://github.com/python/cpython/pull/161670
[3.11] gh-161503: Check hostname in ssl.get_server_certificate with custom ca_certs (GH-161507) #161671https://github.com/python/cpython/pull/161671
brettcshttps://github.com/brettcs
type-bugAn unexpected behavior, bug, or errorhttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22type-bug%22
on Nov 6, 2026https://github.com/python/cpython/issues/161503#event-35369448910
brettcshttps://github.com/brettcs
on Nov 6, 2026https://github.com/python/cpython/issues/161503#event-35370088988
pythonGH-161503: Check hostname in ssl.get_server_certificate with cu…https://github.com/brettcs/cpython/commit/1784d7c332bb8d58858a8492e174f8ca829fd88e
pythonGH-161503https://github.com/python/cpython/issues/161503
1784d7chttps://github.com/brettcs/cpython/commit/1784d7c332bb8d58858a8492e174f8ca829fd88e
pythonGH-161503: Check hostname in ssl.get_server_certificate with cu…https://github.com/brettcs/cpython/commit/6d61b8216d17b0bdf0569f8dd4555810bb80bd83
pythonGH-161503https://github.com/python/cpython/issues/161503
6d61b82https://github.com/brettcs/cpython/commit/6d61b8216d17b0bdf0569f8dd4555810bb80bd83
StanFromIrelandhttps://github.com/StanFromIreland
type-securityA security issuehttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22type-security%22
stdlibStandard Library Python modules in the Lib/ directoryhttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22stdlib%22
3.11only security fixeshttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%223.11%22
topic-SSLhttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22topic-SSL%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
type-bugAn unexpected behavior, bug, or errorhttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22type-bug%22
on Nov 6, 2026https://github.com/python/cpython/issues/161503#event-35373484564
brettcshttps://github.com/brettcs
on Nov 6, 2026https://github.com/python/cpython/issues/161503#event-35373670574
pythonGH-161503: Update documentation for the new checkhttps://github.com/brettcs/cpython/commit/2530d72f43e8efc18090be912634b4a14e9c124c
pythonGH-161503https://github.com/python/cpython/issues/161503
2530d72https://github.com/brettcs/cpython/commit/2530d72f43e8efc18090be912634b4a14e9c124c
pythonGH-161503: Refine documentation per reviewhttps://github.com/brettcs/cpython/commit/e05d00345f8c44defc2093581e1a1e88b0bcfef4
pythonGH-161503https://github.com/python/cpython/issues/161503
e05d003https://github.com/brettcs/cpython/commit/e05d00345f8c44defc2093581e1a1e88b0bcfef4
StanFromIrelandhttps://github.com/StanFromIreland
on Nov 7, 2026https://github.com/python/cpython/issues/161503#event-35454220543
gh-161503: Check hostname in `ssl.get_server_certificate` with custom…https://github.com/python/cpython/commit/8dde46eaa6baf5f027a7234845b20d50b509624e
gh-161503https://github.com/python/cpython/issues/161503
8dde46ehttps://github.com/python/cpython/commit/8dde46eaa6baf5f027a7234845b20d50b509624e
https://github.com/Dynamicp007
Dynamicp007https://github.com/Dynamicp007
on Nov 18, 2026https://github.com/python/cpython/issues/161503#issuecomment-6990582609
ChatGPT Codex Connectorhttps://www.chatgpt.com
Sign up for freehttps://github.com/signup?return_to=https://github.com/python/cpython/issues/161503
Sign in to commenthttps://github.com/login?return_to=https://github.com/python/cpython/issues/161503
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
stdlibStandard Library Python modules in the Lib/ directoryhttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22stdlib%22
topic-SSLhttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22topic-SSL%22
type-securityA security issuehttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22type-security%22
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.