[Twisted-web] HTTPS in Twisted

Colin Alston karnaugh at karnaugh.za.net
Tue Feb 12 09:30:20 EST 2008

On 12/02/2008 15:32 Evandro Dugnani wrote:
> On Feb 8, 2008 9:10 PM, Colin Alston <karnaugh at karnaugh.za.net> wrote:
>> Change TCPServer to SSLServer. Will also help to read the API docs.
> Hi Colin,
>   Thanks for the tip.
>   Using that, I discovered that I had to generate a private key file,
> and then generate a self-signed SSL certificate..
>   After that, I just created a ssl context with the private key and
> the certificate and changed my call "reactor.listenTCP()" to
> "reactor.listenSSL()", passing the ssl context as parameter.

Oh I forgot about the context factory you need. Still, the keys is 
basically swapping TCPServer or listenTCP for SSLServer or listenSSL :P

Colin Alston ~ http://www.karnaugh.za.net/
"To the world you may be one person, to one person you may be the 
world" ~ Rachel Ann Nunes.

More information about the Twisted-web mailing list