[New-bugs-announce] [issue26238] httplib use wrong hostname in https request with SNI support
lirenke
report at bugs.python.org
Fri Jan 29 07:35:46 EST 2016
New submission from lirenke:
httplib give openssl SNI extension message like IP:PORT string.
the apache server would return 400 code if SNI/request ServerName mismatch.
In class HTTPSConnection, we hope call self._get_hostport() before give the value to server_hostname.
===
if self._tunnel_host:
server_hostname = self._tunnel_host
else:
server_hostname = self.host
self.sock = self._context.wrap_socket(self.sock,
server_hostname=server_hostname)
===
----------
components: Library (Lib)
messages: 259207
nosy: lvhancy
priority: normal
severity: normal
status: open
title: httplib use wrong hostname in https request with SNI support
versions: Python 2.7
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue26238>
_______________________________________
More information about the New-bugs-announce
mailing list