accessing tls session from twisted web

March 20, 2012
1:49 p.m.
Hi, all I have a twisted web server, exposing https interface. What I'm trying to do now is to support usage of two-way tls authentication and use data from the client certificate as a seed for authenticated avatar. Any hints as to how to do that in the best way? I guess it should be done before Realm's requestAvatar method is called? thanks for your input! Ilya PS. Roughly speaking the code for that part looks like this: wrapper = guard.HTTPAuthSessionWrapper(Portal(SimpleRealm(), used_checkers), authn_methods) reactor.listenSSL(8080, server.Site(resource=wrapper), contextFactory = sslContext)
4712
Age (days ago)
4712
Last active (days ago)
0 comments
1 participants
participants (1)
-
Ilja Livenson