tornado icon indicating copy to clipboard operation
tornado copied to clipboard

Ability to configure TLS version and cipher suites

Open akalsnes opened this issue 6 years ago • 2 comments

As far as I am aware, Tornado inherits the default Python TLS cipher suites and does not allow configurability. This is an issue for many organizations as TLSv1.0 and TLSv1.1 are deemed insecure.

Is it possible to force TLSv1.2 only, and ideally configure the cipher suites?

akalsnes avatar Apr 29 '20 17:04 akalsnes

tornado.httpserver.HTTPServer takes an ssl_options kwarg which can be an ssl.SSLContext in which tls-1.2-only can be configured.

The tornado simple_httpclient also supports an ssl_options kwarg set on a tornado.httpclient.HTTPRequest, while the curl_httpclient supports a prepare_curl_callback kwarg which you can use to set arbitrary pycurl options, including some tls configuration.

ploxiln avatar Apr 29 '20 19:04 ploxiln

Thank you. Using your guidance, we were able to enable TLSv1.2.

akalsnes avatar Apr 30 '20 18:04 akalsnes