[Twisted-Python] Encrypted PB?
Michal Pasternak wrote:
How can I plug-in encryption of transmission of PB ?
_______________________________________________ Twisted-Python mailing list Twisted-Python@twistedmatrix.com http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python
SSL -darryl
it's not often i can answer any question on this list, so i hope i'm first ;-) .... here's a snippet from some server code of mine that allows either SSL or plaintext sessions: #If the user has selected secure, we only allow connections #over SSL. The pyOpenSSL library must be installed for this #to work. if(config['secure']): contexts = ssl.DefaultOpenSSLContextFactory(config['key'], config['cert']) pb_service = internet.SSLServer(int(config['port']), pb.PBServerFactory(portal), contexts) else: pb_service = internet.TCPServer(int(config['port']), pb.PBServerFactory(portal)) pb_service.setServiceParent(master_service) reg_service.setServiceParent(master_service) On Jan 4, 2004, at 6:11 PM, Michal Pasternak wrote:
darryl [Sun, Jan 04, 2004 at 05:43:22PM -0800]:
Michal Pasternak wrote:
SSL
... any examples?
_______________________________________________ Twisted-Python mailing list Twisted-Python@twistedmatrix.com http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python
participants (3)
-
darryl
-
Michal Pasternak
-
Phil Christensen