Welcome! Log In Create A New Profile

Advanced

Re: TLS session resumption (identifier)

March 04, 2016 04:42AM
On 04 Mar 2016, at 12:08, B.R. <reallfqq-nginx@yahoo.fr> wrote:

> Thanks Igor, that makes the whole thing crystal clear!
>
> What saves us there is the fact that, if I understand it well, the RFC 5077​ states the server decides by itself on the use of tickets and those have precedence over identifiers.

Yes.

> But still, advertising something without actually supporting it must lead to cases where sessions reuse is believed to take place without ever happening, harming performance... that was probably happening in versions < 1.5.9.

I do not think that it should harm performance.

> Giving the possibility to accomodate with Outlook (and Microsoft products in general) numerous quirks is fine, but making it the default is debatable…

I believe this is safe default and clients should not rely on resumed sessions because
1) sessions have timeout defined by server security policy,
2) and server has limited session storage so old sessions are removed.

> Maybe the docs should be more explicit about the reason of the existence of 'none'? Code comments are clearer than the docs on this matter.

Yes, probably.

--
Igor Sysoev
http://nginx.com

> On Thu, Mar 3, 2016 at 4:48 PM, Igor Sysoev <igor@sysoev.ru> wrote:
>
> On 03 Mar 2016, at 18:42, B.R. <reallfqq-nginx@yahoo.fr> wrote:
>
>> Thanks, Maxim.
>>
>> You were right: I did my tests improperly...
>>
>> What is the use of the 'none' value then? Should not there be only the 'off' one?
>> There must be some benefit to it, but I fail to catch it.
>
> Initially it has been implemented for mail proxy module, but it seems that “none”
> is more graceful than “off” in general:
>
> /*
> * If the server explicitly says that it does not support
> * session reuse (see SSL_SESS_CACHE_OFF above), then
> * Outlook Express fails to upload a sent email to
> * the Sent Items folder on the IMAP server via a separate IMAP
> * connection in the background. Therefore we have a special
> * mode (SSL_SESS_CACHE_SERVER|SSL_SESS_CACHE_NO_INTERNAL_STORE)
> * where the server pretends that it supports session reuse,
> * but it does not actually store any session.
> */
>
> --
> Igor Sysoev
> http://nginx.com
>
>> On Thu, Mar 3, 2016 at 2:29 PM, Maxim Dounin <mdounin@mdounin.ru> wrote:
>> Hello!
>>
>> On Thu, Mar 03, 2016 at 12:42:55PM +0100, B.R. wrote:
>>
>> > Based on the default value of ssl_session_cache
>> > <http://nginx.org/en/docs/http/ngx_http_ssl_module.html#ssl_session_cache>,
>> > nginx does not store any session parameter, but allows client with the
>> > right Master Key to reuse their ID (and the parameters they got).
>> >
>> > Since nginx, does not cache anything and is thus unable to revalidate
>> > anything but the Master Key, isn't it a violation of the RFC not to
>> > validate all the parameters?
>>
>> You are misunderstanding what "ssl_session_cache none" does. It
>> doesn't allow anything to be reused, just says so to clients.
>>
>> --
>> Maxim Dounin
>> http://nginx.org/
>>
>> _______________________________________________
>> nginx mailing list
>> nginx@nginx.org
>> http://mailman.nginx.org/mailman/listinfo/nginx
>
>
> _______________________________________________
> nginx mailing list
> nginx@nginx.org
> http://mailman.nginx.org/mailman/listinfo/nginx
>
> _______________________________________________
> nginx mailing list
> nginx@nginx.org
> http://mailman.nginx.org/mailman/listinfo/nginx

_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

TLS session resumption (identifier)

B.R. March 03, 2016 06:52AM

Re: TLS session resumption (identifier)

Maxim Dounin March 03, 2016 08:30AM

Re: TLS session resumption (identifier)

B.R. March 03, 2016 10:44AM

Re: TLS session resumption (identifier)

Igor Sysoev March 03, 2016 10:50AM

Re: TLS session resumption (identifier)

B.R. March 04, 2016 04:22AM

Re: TLS session resumption (identifier)

Igor Sysoev March 04, 2016 04:42AM

Re: TLS session resumption (identifier)

B.R. March 04, 2016 04:58AM

Re: TLS session resumption (identifier)

Igor Sysoev March 04, 2016 05:20AM

Re: TLS session resumption (identifier)

B.R. March 04, 2016 05:32AM

Re: TLS session resumption (identifier)

Igor Sysoev March 04, 2016 05:40AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 130
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready