SSL support in SOAPpy to build a SOAP server

J

johnmiloo

Can some one get me started with a working SOAP server that works over
https. (SSL)?
I have M2Crypto installed and found the following sample, but something
is wrong in ssl_context = SSL.Context()

Any help or tutorial appreciated?


from SOAPpy import SOAPServer

from M2Crypto import SSL

def echo(s):
return s+s # repeats a string twice

ssl_context = SSL.Context()
ssl_context.load_cert('server.pem')

server = SOAPServer(("localhost",8443), ssl_context = ssl_context)
server.registerFunction(echo)
server.serve_forever()
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,579
Members
45,053
Latest member
BrodieSola

Latest Threads

Top