only enable TLS 1.2

This commit is contained in:
j 2014-10-22 11:42:11 +01:00
parent bde2c963a7
commit ec5413beb7
1 changed files with 3 additions and 1 deletions

View File

@ -2,6 +2,7 @@
# vi:si:et:sw=4:sts=4:ts=4
import json
import ssl
from tornado.httpserver import HTTPServer
from tornado.ioloop import PeriodicCallback
@ -100,7 +101,8 @@ def start():
], gzip=True)
http_server = HTTPServer(application, ssl_options={
"certfile": settings.tls_cert_path,
"keyfile": settings.tls_key_path
"keyfile": settings.tls_key_path,
"ssl_version": ssl.PROTOCOL_TLSv1_2
})
http_server.listen(settings.server['node_port'], settings.server['node_address'])
state.main.add_callback(publish_node)