You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
ssl.get_server_certificate(addr, ca_certs=...) verifies the chain but never the identity #161503
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.
Activity
pythonGH-161503: Check hostname in ssl.get_server_certificate with cu…
pythonGH-161503: Check hostname in ssl.get_server_certificate with cu…
pythonGH-161503: Update documentation for the new check
pythonGH-161503: Refine documentation per review