trevp/tlslite

SNI with HTTPTLSConnection missing

Opened this issue · 2 comments

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.

can you check if this pull request tlsfuzzer/tlslite-ng#72 fixes your issue?

Yes! Thank you very much!