Message106324
Here's another possible approach:
ctx = ssl.SSLContext(ssl.PROTOCOL_TLSv1)
ctx.set_tlsext_host_name("foo.bar")
skt = ctx.wrap_socket(socket.socket())
skt.connect("bar.baz")
This makes it obvious what the SNI hostname is and what the TCP address to connect to is, and they can easily be different. |
|
Date |
User |
Action |
Args |
2010-05-22 22:17:48 | exarkun | set | recipients:
+ exarkun, jcea, janssen, pitrou, giampaolo.rodola, pdp, grooverdan |
2010-05-22 22:17:48 | exarkun | set | messageid: <1274566668.38.0.500008928076.issue5639@psf.upfronthosting.co.za> |
2010-05-22 22:17:46 | exarkun | link | issue5639 messages |
2010-05-22 22:17:46 | exarkun | create | |
|