only enable TLS 1.2
This commit is contained in:
parent
bde2c963a7
commit
ec5413beb7
1 changed files with 3 additions and 1 deletions
|
@ -2,6 +2,7 @@
|
||||||
# vi:si:et:sw=4:sts=4:ts=4
|
# vi:si:et:sw=4:sts=4:ts=4
|
||||||
|
|
||||||
import json
|
import json
|
||||||
|
import ssl
|
||||||
|
|
||||||
from tornado.httpserver import HTTPServer
|
from tornado.httpserver import HTTPServer
|
||||||
from tornado.ioloop import PeriodicCallback
|
from tornado.ioloop import PeriodicCallback
|
||||||
|
@ -100,7 +101,8 @@ def start():
|
||||||
], gzip=True)
|
], gzip=True)
|
||||||
http_server = HTTPServer(application, ssl_options={
|
http_server = HTTPServer(application, ssl_options={
|
||||||
"certfile": settings.tls_cert_path,
|
"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'])
|
http_server.listen(settings.server['node_port'], settings.server['node_address'])
|
||||||
state.main.add_callback(publish_node)
|
state.main.add_callback(publish_node)
|
||||||
|
|
Loading…
Reference in a new issue