from txjsonrpc.web import jsonrpc
from twisted.web import server
from twisted.internet import reactor, ssl

class Math(jsonrpc.JSONRPC):
    """
    An example object to be published.
    """
    def jsonrpc_add(self, a, b):
        """
        Return sum of arguments.
        """
        return a + b


sslContext = ssl.DefaultOpenSSLContextFactory(
	'privkey.pem', 
	'cacert.pem',
)

reactor.listenSSL(
	7443,
	server.Site(Math()),
	contextFactory = sslContext,
)
reactor.run()


d7417403341df4f392972f38dc81720e3285d762
<mask token>


class Math(jsonrpc.JSONRPC):
    """
    An example object to be published.
    """

    def jsonrpc_add(self, a, b):
        """
        Return sum of arguments.
        """
        return a + b


<mask token>

<mask token>


class Math(jsonrpc.JSONRPC):
    """
    An example object to be published.
    """

    def jsonrpc_add(self, a, b):
        """
        Return sum of arguments.
        """
        return a + b


<mask token>
reactor.listenSSL(7443, server.Site(Math()), contextFactory=sslContext)
reactor.run()

<mask token>


class Math(jsonrpc.JSONRPC):
    """
    An example object to be published.
    """

    def jsonrpc_add(self, a, b):
        """
        Return sum of arguments.
        """
        return a + b


sslContext = ssl.DefaultOpenSSLContextFactory('privkey.pem', 'cacert.pem')
reactor.listenSSL(7443, server.Site(Math()), contextFactory=sslContext)
reactor.run()

from txjsonrpc.web import jsonrpc
from twisted.web import server
from twisted.internet import reactor, ssl


class Math(jsonrpc.JSONRPC):
    """
    An example object to be published.
    """

    def jsonrpc_add(self, a, b):
        """
        Return sum of arguments.
        """
        return a + b


sslContext = ssl.DefaultOpenSSLContextFactory('privkey.pem', 'cacert.pem')
reactor.listenSSL(7443, server.Site(Math()), contextFactory=sslContext)
reactor.run()

from txjsonrpc.web import jsonrpc
from twisted.web import server
from twisted.internet import reactor, ssl

class Math(jsonrpc.JSONRPC):
    """
    An example object to be published.
    """
    def jsonrpc_add(self, a, b):
        """
        Return sum of arguments.
        """
        return a + b


sslContext = ssl.DefaultOpenSSLContextFactory(
	'privkey.pem', 
	'cacert.pem',
)

reactor.listenSSL(
	7443,
	server.Site(Math()),
	contextFactory = sslContext,
)
reactor.run()

