You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Session cache should keep track of TLS version maximum #186
Note that offering or accepting a session short-circuits most parameter negotiation. Resuming sessions across different configurations may result in surprising behavior. So, for instance, a client implementing a version fallback should shard its session cache by maximum protocol version.
Conscrypt should be changed to track maximum protocol version in its SSL session cache to avoid these gotchas.
Things are a little bit better now. Actually I'm not sure why I singled out the version fallback in that. That definitely used to be a problem, but we've long since fixed the quirk around version fallbacks where offering a version as a client was sticky. I don't know of any servers which short-circuit version negotiation.
Short-circuiting cipher suite negotiation is sadly common. OpenSSL servers do it, as did BoringSSL servers when I wrote that. We don't anymore (we now negotiate the cipher suite up-front and only resume if it matches what's in the session), but other servers still do. Stuff like client certificates are also still short-circuited.
How does configuring parameters typically work in the Java API? I see there are these SSLParameters objects and you can setSSLParameters on a per socket basis? Though an SSLParameters is also mutable. But I see an SSLSocket also has functions like setEnabledCipherSuites. I take it this means socket parameters just float around everywhere?
I guess then the question is whether Conscrypt believes it is its responsibility to smooth over this kind of thing or if you just expose this behavior to the calling application, which is required to make a separate SSLContext or whatever if it cares.
I think the main problems here were fixed by #172, which added checking for protocol and cipher suite matches on cached sessions before attempting to resume them. I think the only remaining gap is client certs, which should be relatively easy to add.
Activity
davidben commentedon Jun 19, 2017
Things are a little bit better now. Actually I'm not sure why I singled out the version fallback in that. That definitely used to be a problem, but we've long since fixed the quirk around version fallbacks where offering a version as a client was sticky. I don't know of any servers which short-circuit version negotiation.
Short-circuiting cipher suite negotiation is sadly common. OpenSSL servers do it, as did BoringSSL servers when I wrote that. We don't anymore (we now negotiate the cipher suite up-front and only resume if it matches what's in the session), but other servers still do. Stuff like client certificates are also still short-circuited.
How does configuring parameters typically work in the Java API? I see there are these
SSLParametersobjects and you cansetSSLParameterson a per socket basis? Though anSSLParametersis also mutable. But I see anSSLSocketalso has functions likesetEnabledCipherSuites. I take it this means socket parameters just float around everywhere?I guess then the question is whether Conscrypt believes it is its responsibility to smooth over this kind of thing or if you just expose this behavior to the calling application, which is required to make a separate
SSLContextor whatever if it cares.flooey commentedon Sep 25, 2018
I think the main problems here were fixed by #172, which added checking for protocol and cipher suite matches on cached sessions before attempting to resume them. I think the only remaining gap is client certs, which should be relatively easy to add.