From README :
Cycle- This is a twisted protocol, so it can be used in conjunction with any other protocol implemented in Twisted.
If Twisted supports SSL, then the cyclone supports it, for example:
import cyclone.web
class IndexHandler(cyclone.web.RequestHandler):
def get(self):
self.write("hello world")
factory = cyclone.web.Application([(r"/", IndexHandler)])
portstr = "ssl:4443:privateKey=server_key.pem:certKey=server_cert.pem"
from twisted.application import service, strports
application = service.Application("cyclone-ssl")
strports.service(portstr, factory).setServiceParent(application)
Run it as:
$ twistd -ny cyclone-ssl.py
, ssl, portstr. , 4443 server_key.pem , server_cert.pem .