Beryl::TLS::SealedSessionState
What a server seals into a session ticket, and reads back when a client offers it (RFC 9846 §4.6.1, §4.2.11). The server keeps no state: the ticket is XChaCha20-Poly1305 under the context's ticket key.
A session whose client sent a certificate keeps that chain in its tickets, so a resumed connection has the same peer certificate. A server that asks for client certificates verifies the chain again when it resumes, and one that requires a certificate resumes only a session that had one.
Constants
Authenticated with every ticket, so a ticket key used elsewhere cannot be confused with this one.
A version byte at the front, so a later format can coexist. Version 2 added the client's certificate chain; a version 1 ticket is not opened, and its client gets a full handshake.
The most bytes of client certificates a ticket carries. A server sends no tickets after a handshake whose client chain is larger, so every ticket stays well inside NewSessionTicket's two-byte length.
The longest lifetime RFC 9846 §4.6.1 allows: seven days.
Constructors
Class methods
Instance methods
The DER of the client's certificate chain, leaf first; empty when the client sent none.