[Twisted-Python] Encrypted PB?
Phil Christensen
phil at bubblehouse.org
Sun Jan 4 19:38:34 MST 2004
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 at twistedmatrix.com
> http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python
More information about the Twisted-Python
mailing list