[Twisted-web] Authenticating with a certificate

Doug Gorley doug.gorley at gmail.com
Mon Mar 29 13:29:39 EDT 2010

G'day Twisted list,

I'm brand new to Twisted, and I'm trying to wrap my head
around writing a client that authenticates with a certificate.
I have a PFX file, and a small Perl script that I can use
to download content, but I don't seem to be able to replicate
this on other machines.  I'd like to replace the whole mess
with a more robust Python solution.

My communication with the server needs to look like this:


ME: https://www.example.com/AUTHURL
              +--------------------> SERVER: (Authenticated)
ME: https://www.example.com/FETCHCONTENT <------------+
              +--------------------> SERVER: (XML content)
ME: https://www.example.com/ACKNOWLEDGE <-------------+
              +--------------------> SERVER: (acknowledged)
ME: https://www.example.com/LOGOUT <------------------+
              +--------------------> SERVER: (logout)


I'm working from the O'Reilly Twisted book, and trying to
reconcile that with the API and the examples on the Twisted
site, but I'm not sure I'm finding what I need.  Can anyone
give me any pointers on how to proceed?  Thanks muchly.

Doug Gorley | doug.gorley at gmail.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://twistedmatrix.com/pipermail/twisted-web/attachments/20100329/1250fcf9/attachment.htm 

More information about the Twisted-web mailing list