trevp / tlslite

TLS Library in python
Other
236 stars 67 forks source link

SNI with HTTPTLSConnection missing #112

Open Varbin opened 8 years ago

Varbin commented 8 years ago

The HTTPTLSConnection class does not send SNI information.

It can be tested by connecting to an SNI-only site and looking at the certificate:

>>> from tlslite.api import HTTPTLSConnection

>>> c = HTTPTLSConnection("biewald.dedyn.io", 443)
>>> c.request("GET", "")
>>> print(c.tlsSession.serverCertChain.x509List[0].bytes)
bytearray(b"0\x82\...\x82\x0evarbin.noip.me0Q...\xc3\xdf")

My python version is 3.5.0 and my tlslite version is 0.4.9 from PyPi.

tomato42 commented 8 years ago

can you check if this pull request https://github.com/tomato42/tlslite-ng/pull/72 fixes your issue?

Varbin commented 8 years ago

Yes! Thank you very much!