views:

232

answers:

1

I already have a very simple threading XML-RPC server in Python:

from SocketServer import ThreadingMixIn
class AsyncXMLRPCServer(ThreadingMixIn, SimpleXMLRPCServer):
    pass

server = AsyncXMLRPCServer(('localhost', 9999))
server.register_instance(some_object())
server.serve_forever()

Now I want to make it accessible exclusively over https. What do I do?

+3  A: 

The standard library doesn't support HTTPS servers. There is a Cookbook Recipe using an OpenSSL module. There is also a Twisted solution.

Martin v. Löwis
I had seen that recipe, but thought things may have gotten into the standard library that were not there in 2006 when that recipe was written. Guess not :-(
scrible
I vote for twisted. You can write nice custom servers with it too - see http://blog.gridspy.co.nz/2009/09/database-meet-realtime-data-logging.html
Tom Leys
+1 for the twisted solution.
nosklo