Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

#32 tlslite Server support for SOAPpy

open
nobody
SOAPpy (14)
5
2005-10-17
2005-10-17
Thomas Jacob
No

This patch adds support for using tlslite as replacement for
M2Crypto on the Server side. It's largely untested,
but works for me. Feedback on whether
or not it works for you would be appreciated.

Usage example (cf. tlslite.TLSConnection.handshakeServer
docs):

from SOAPpy import *
from tlslite.api import *

s = open("cert_chain.pem").read()
x509 = X509()
x509.parse(s)
certChain = X509CertChain([x509])
s = open("key.pem").read()
privateKey = parsePEMKey(s, private=True)

ssl_context = { 'tlslib' : 'tlslite',
'args' :
{
'certChain' : certChain,
'privateKey' : privateKey
}
}

server = SOAPServer(('0.0.0.0', 9999), ssl_context=ssl_context)

o = SomeService()
server.registerObject(o)

server.serve_forever(
)

Discussion

  • Thomas Jacob
    Thomas Jacob
    2005-10-17

    • labels: --> SOAPpy
     
  • Thomas Jacob
    Thomas Jacob
    2005-10-17

    • summary: tlslite Server support --> tlslite Server support for SOAPpy
     
  • Thomas Jacob
    Thomas Jacob
    2005-10-17

    tlslite SOAPpy server support