I had some difficulty to find how to get the ssl certificate from the xmlrpc function but I found how to do it : You can get the protocol from the xmlrpc function with @withRequest http://twistedmatrix.com/documents/11.1.0/api/twisted.web.xmlrpc.withRequest.html Then you can use getPeerCertificate from the transport
@withRequest def xmlrpc_helloworld(self,request): return 'Hello ' + request.channel.transport.getPeerCertificate().get_subject().commonName ##################################################################################### This e-mail message has been scanned for Viruses and Content and cleared by Mailsecurity software #####################################################################################
_______________________________________________ Twisted-Python mailing list Twisted-Python@twistedmatrix.com http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python