Can SSL context options be set when using Twisted endpoints?
|September 15, 2014||Posted by forumadmin under TechQns||
I am writing a server in Python+Twisted that uses the endpoints  to allow configuring the listening connection. The documentation doesn’t show any obvious (to me!) way to set options for an SSL context object using an endpoint string. I poked around in the source, and it looks like the
IStreamServerEndpoint object returned for an SSL connection has something like a
_context attribute I could fiddle with, but that seems kind of kludgy. I was wondering if there is some way for me to set the SSL context options without having to hack the endpoint internals. (I want to set the context up to be able to verify a client certificate).
|Asked By – Carl||Read Answers|