Re: [tornado] Tornado and SSL client certificates

714 views
Skip to first unread message

Ben Darnell

unread,
Nov 8, 2012, 9:50:26 AM11/8/12
to Tornado Mailing List
Not currently.  Tornado doesn't support SSL renegotiation, which would be necessary to request a client certificate after the HTTP request has already been read (and note that support for renegotiation is generally poor, so even if tornado supported it you'd need to test with all the clients you care about).  The best you can do for now is to run the parts that need client certificates on a different IP or port with a separate HTTPServer object.

-Ben


On Tue, Nov 6, 2012 at 4:50 AM, Joshua Downer <joshua...@gmail.com> wrote:
Hi,

I have a situation where I want to use SSL to encrypt traffic through an API, but I also have part of that API where I want to authenticate users using client certificates. I know that I can setup a tornado server to handle client certificates in general, but is it possible to make them URI specific?

-Josh


Andrew Grigorev

unread,
Nov 8, 2012, 10:30:46 AM11/8/12
to python-...@googlegroups.com
I guess he can use cert_reqs=ssl.CERT_OPTIONAL in ssl_options and check client certs in RequestHandlers where it is necessary. Or use nginx and place client certificate information in HTTP headers, which is probably a better solution.

08.11.2012 18:50, Ben Darnell пишет:
-- 
Andrew

Joshua Downer

unread,
Nov 15, 2012, 9:00:52 AM11/15/12
to python-...@googlegroups.com
Thanks for the help!
Reply all
Reply to author
Forward
0 new messages