Re: Nginx + lua-nginx, get ssl_session_id

2016-05-26 Thread Dimka
Yes, impossible. In my case, I can use remoteIP/Port, I think its enough to ident. I need it to prevent extra DB queries which done with first request. Posted at Nginx Forum: https://forum.nginx.org/read.php?2,255157,267174#msg-267174 ___ nginx maili

Re: Nginx + lua-nginx, get ssl_session_id

2016-05-26 Thread Aapo Talvensaari
On 26 May 2016 at 14:04, Dimka wrote: > Face the same problem, empty $ssl_session_id variable. > > If ssl_session_ticket off, $ssl_session_id always contain ID. > > How can I identify client connection if no ssl session id available? > I would also know answer for this. It is kinda either: 1. se

Re: Nginx + lua-nginx, get ssl_session_id

2016-05-26 Thread Dimka
Face the same problem, empty $ssl_session_id variable. If ssl_session_ticket off, $ssl_session_id always contain ID. How can I identify client connection if no ssl session id available? I need "session" IDentificator to pass it to backend, which authorize requests by this ID. Posted at Nginx Fo

Re: Nginx + lua-nginx, get ssl_session_id

2014-11-28 Thread Yichun Zhang (agentzh)
Hello! On Thu, Nov 27, 2014 at 12:07 AM, VladimirSmirnov wrote: > P.S. As pointed by resty.session author, I've disabled ssl_session_ticket > and now I'm receiving ssl_session_id even with TLS enabled. But I'm not sure > that it's best way to deal with this problem. > No, you don't really want th

Re: Nginx + lua-nginx, get ssl_session_id

2014-11-27 Thread VladimirSmirnov
Thanks! Then what should I use for TLS connections? P.S. As pointed by resty.session author, I've disabled ssl_session_ticket and now I'm receiving ssl_session_id even with TLS enabled. But I'm not sure that it's best way to deal with this problem. P.S.S. I've used this mail-listing, because it'

Re: Nginx + lua-nginx, get ssl_session_id

2014-11-26 Thread Yichun Zhang (agentzh)
Hello! On Wed, Nov 26, 2014 at 8:29 AM, VladimirSmirnov wrote: > For testing purposes I'm using self-signed ssl cert. > > ngx.log(ngx.DEBUG, "session_id=", ngx.var.ssl_session_id) prints "nil" in > the logs. How can I get access to this variable? > It's very likely that your client sends TLS sess

Nginx + lua-nginx, get ssl_session_id

2014-11-26 Thread VladimirSmirnov
Hi! I'm trying to modify one of auth modules for nginx and I need to get content of either ssl_session_id or any other ssl_* variables with uniq client id to identify connection. But I've got a problems with accessing to this variables from lua. For testing purposes I'm using self-signed ssl cert