You are viewing a plain text version of this content. The canonical link for it is here.
Posted to bugs@httpd.apache.org by bu...@apache.org on 2020/02/07 10:10:18 UTC

[Bug 64124] New: TLS1.3 sessions not resumable after graceful restart

https://bz.apache.org/bugzilla/show_bug.cgi?id=64124

            Bug ID: 64124
           Summary: TLS1.3 sessions not resumable after graceful restart
           Product: Apache httpd-2
           Version: 2.4.39
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: mod_ssl
          Assignee: bugs@httpd.apache.org
          Reporter: dominik.stillhard@united-security-providers.ch
  Target Milestone: ---

TLSv1.3 session are lost after a graceful restart, which isn't the case with
TLSv1.2.

Steps to reproduce:
- Configure shared-memory session cache:
    SSLSessionCache shmcb:/path/to/datafile[(size)] 

- connect with openssl s_client with the -sess_out <file> parameter so that we
get a session file.

- gracefully restart apache

- connect again with openssl s_client, this time with the -sess_in <file>
parameter so we use that session from before.

- see the full-handshake happening...

now to see the difference just do the same steps but don't gracefully restart
apache.

i have had a look in the sources at ssl_scache.c and the killing respectively
the re-initialization of the cache is skipped correctly:

at the top of ssl_scache_init: 
    if (ap_is_graceful()) {
        return APR_SUCCESS;
    }

and also at the beginning of ssl_scache_kill:
    if (mc->sesscache && !ap_is_graceful()) {
        mc->sesscache->destroy(mc->sesscache_context, s);
    }


but still something must be wrong because the graceful obviously somehow
destroys the session...

for more details also see my question on stackoverflow:
https://stackoverflow.com/questions/60080365/apaches-sslsessioncache-not-working-correctly-with-tlsv1-3-and-graceful-restart

-- 
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


[Bug 64124] TLS1.3 sessions not resumable after graceful restart

Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=64124

Rich Bowen <rb...@apache.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |WONTFIX

--- Comment #3 from Rich Bowen <rb...@apache.org> ---
Thank you for your report. As part of an effort to clean up our issue tracker,
we are closing tickets that have seen no activity for more than 5 years. If
this issue is still relevant to a current version of Apache httpd (2.4.x or
trunk), please reopen this ticket or open a new one with updated information.
We appreciate your contribution to the project.

-- 
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


[Bug 64124] TLS1.3 sessions not resumable after graceful restart

Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=64124

--- Comment #2 from Ruediger Pluem <rp...@apache.org> ---
(In reply to Dominik Stillhard from comment #1)
> after some investigations i have an update on this. it is related to the 
> SSLSessionTickets directive. 
> 
> - With "SSLSessionTickets off" resumption works after a graceful restart.
> 
> - With "SSLSessionTickets on" this doesn't work...

This makes sense. During restart the key to encrypt the session will very
likely be recreated. Hence old sessiontickets can no longer be decrypted after
the restart.

-- 
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


[Bug 64124] TLS1.3 sessions not resumable after graceful restart

Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=64124

--- Comment #1 from Dominik Stillhard <do...@united-security-providers.ch> ---
after some investigations i have an update on this. it is related to the 
SSLSessionTickets directive. 

- With "SSLSessionTickets off" resumption works after a graceful restart.

- With "SSLSessionTickets on" this doesn't work...

-- 
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org