nouveau fichier: ssl/server.crt

nouveau fichier: ssl/server.key
	modifié:         superTornado.py
This commit is contained in:
sidya82
2014-03-12 16:35:01 +01:00
parent 6ec749c0d2
commit 3343b43d80
5 changed files with 62 additions and 1 deletions

View File

@@ -205,7 +205,10 @@ if __name__ == "__main__":
try :
log.printL("->Server Start ...",lvl.INFO)
tornado.options.parse_command_line()
http_server = tornado.httpserver.HTTPServer(application)
http_server = tornado.httpserver.HTTPServer(application,ssl_options={
"certfile": os.path.join("/ssl", "server.crt"),
"keyfile": os.path.join("/ssl", "server.key"),
}))
http_server.listen(portServ)
log.printL("->Server Start Successfully !",lvl.SUCCESS)
tornado.ioloop.IOLoop.instance().start()