Arkady
Arkady

Reputation: 15069

Need a HTTPS-capable Python XML-RPC server

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?

Upvotes: 2

Views: 1868

Answers (1)

Martin v. Löwis
Martin v. Löwis

Reputation: 127447

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

Upvotes: 5

Related Questions