-
Notifications
You must be signed in to change notification settings - Fork 2.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
TLS 1.3 server: Implement and test behaviour one when receiving an "early_data" extension #6360
Comments
There are some cases in my mind.
I think that means ext PSK 1-RTT fall back ? If yes, it is in #6541 also. |
I have a question that may be stupid.
When is this likely to happen in practice? The server issued the ticket, so it should support the ciphersuite in it. Is this about a case where the server was restarted with a new configuration but in a way that didn't invalidate the ticket? So the ticket is acceptable as such (in particular, the server still have the keys to decrypt it) but not for 0-RTT? I mean, I see this in the RFC:
so clearly if the RFC mentions it there's a reason, but scenarios where a server will accept a given ticket/PSK for 1-RTT but not for 0-RTT seem pretty rare to me. |
Yes I also think it is unlikely to happen but for 1-RTT resumption the spec does not ask for the resumption ciphersuite to be the same as the original one, only their hashes need to match. Thus the spec consider this as a possible scenario but does not allow that for early data. |
SPEC:
A server which receives an "early_data" extension MUST behave in one
of three ways:
The purpose of this issue is to implement and test the behavior described just above.
The "configured max_early_data_size" should be 0 but in the case of early data associated to a valid PSK (valid from the handshake point of view) established through a NewSessionTicket where it is then equal to the max_early_data_size associated to the PSK.
Testing:
An MbedTLS client sends as part of a session resumption less early data than the maximum authorized by the associated ticket to an MbedTLS server but the server does not eventually accept early data (because the PSK ciphersuite is not available on the server for example). The PSK based handshake succeeds but not the early data transfer.
Depends on: #6341
The text was updated successfully, but these errors were encountered: