[New-bugs-announce] [issue45423] SSL SNI varies when host contains port number

Thomas Hobson report at bugs.python.org
Sun Oct 10 09:41:48 EDT 2021


New submission from Thomas Hobson <thomas at hexf.me>:

Not entirely sure if this is intended.

When using urllib.request.urlopen, with a hostname and a varying port the SNI information sent differs.
To my undersnding, the SNI info shouldn't include the port and should only include the actual host.

Attached is an example script demonstrating the issue, where the only difference between the URLs is adding a port number.
The server it points to is configured to only match "ci.hexf.me".

----------
assignee: christian.heimes
components: SSL
files: test.py
messages: 403586
nosy: christian.heimes, hexf
priority: normal
severity: normal
status: open
title: SSL SNI varies when host contains port number
type: behavior
versions: Python 3.10, Python 3.9
Added file: https://bugs.python.org/file50338/test.py

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue45423>
_______________________________________


More information about the New-bugs-announce mailing list