head.daveops.net

Snippets for yer computer needs

Tornado

Tornado

@Python

SSL


 server = tornado.httpserver.HTTPServer(application, ssl_options={
 "certfile": "/path/to/ssl/cert.crt",
 "keyfile": "/path/to/ssl/tornado_key.pem",
 })
 server.bind(port)
 server.start(0)
 tornado.ioloop.IOLoop.instance().start()