[Twisted-Python] Question about twisted.web

I have two questions about twisted.web that I am hoping someone can assist on. First, if I connect to my service via HTTPS how can I get the certificate of the client (I require them to have a certificate)? Secondly, how can I get the name or IP address of the machine that is talking to me? Thanks, Chaz

1. (client cert) Probably with the following class method, but I've never used it myself: http://twistedmatrix.com/documents/current/api/twisted.internet.ssl.Certific... 2. (client ip) http://twistedmatrix.com/documents/current/api/twisted.web.http.Request.html class Res(resource.Resource): def render_GET(self, request): request.getClientIP() On Sun, 2007-05-06 at 11:53 -0400, Chaz. wrote:
I have two questions about twisted.web that I am hoping someone can assist on. First, if I connect to my service via HTTPS how can I get the certificate of the client (I require them to have a certificate)? Secondly, how can I get the name or IP address of the machine that is talking to me?
Thanks, Chaz
_______________________________________________ Twisted-Python mailing list Twisted-Python@twistedmatrix.com http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python
participants (2)
-
Chaz.
-
Thomas Jacob