[Twisted-Python] Getting SSL context of protocol session

Steve Smith ssmith at vislab.usyd.edu.au
Thu Apr 14 23:29:26 MDT 2005


On Wed, 2005-04-13 at 12:37 +1000, Steve Smith wrote:
> Hi,
> 
> How do I retrieve the SSL context for a given protocol session object?

For the public record I haven't been able to find a straightforward way
to do this, as the connection discards the SSL context it creates after
passing it to OpenSSL.  However the alternative is to use a TLS
negotiation within the protocol (aka 'STARTTLS') which gives you more
control over the handshaking phase.  I've placed some notes and example
code here:

    http://wiki.vislab.usyd.edu.au/moin.cgi/SSLCertNotes

Cheers,
Steve






More information about the Twisted-Python mailing list