Uh oh!
There was an error while loading. Please reload this page.
Support TLS Resume with client certificates on Linux - #102656
Conversation
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
wfurt
commented
May 28, 2024
I don't quite understand the comment. I thought we only support stateless e.g. tickets to avoid large server cache. But I would also think that it does not matter e.g. the resumption is possible in either way. |
Uh oh!
There was an error while loading. Please reload this page.
I meant that Linux .NET server does not issue resumption tokens in TLS 1.3, so I had to test against different server (Windows in this case). Edit: my bad, it turns out that the resumption ticket was not transmitted because we close the connection without actually transmitting any user data, adding a ping-pong to the tests fixed the problem. |
rzikm
commented
Jun 6, 2024
/azp run runtime-extra-platforms |
|
Azure Pipelines successfully started running 1 pipeline(s). |
rzikm
commented
Jun 6, 2024
/azp run runtime-libraries coreclr-outerloop |
|
No pipelines are associated with this pull request. |
rzikm
commented
Jun 6, 2024
/azp list |
rzikm
commented
Jun 6, 2024
/azp run runtime-libraries-coreclr outerloop |
|
Azure Pipelines successfully started running 1 pipeline(s). |
rzikm
commented
Jun 11, 2024
/azp run runtime-extra-platforms |
rzikm
commented
Jun 11, 2024
/azp run runtime-libraries-coreclr outerloop |
|
Azure Pipelines successfully started running 1 pipeline(s). |
1 similar comment
|
Azure Pipelines successfully started running 1 pipeline(s). |
rzikm
commented
Jun 12, 2024
/ba-g Test failures are all unrelated, relevant stages (System.Net.Security.Tests) all pass |
Related regression: dotnet/perf-autofiling-issues#36400 (Only the SSLStreamTests) Linux Arm64: dotnet/perf-autofiling-issues#36652 |
I realize I did not post any measurements here, so here we are: The |
rzikm
commented
Jun 19, 2024
cc @stephentoub, @ManickaP, since this might look well in your future blog posts |
stephentoub
commented
Jun 19, 2024
already on my list :) |

Closes#94561.
This PR enables TLS resume on Linux if client certificate is provided. The feature is triggered if local certificate selection routine manages to select a certificate, i.e. either of these situations:
The feature is enabled by caching SSL_CTX as before, certificate thumbprint has been added to the cache key to mirror what we do on Windows. The caching code has been reused from MsQuicConfiguration cache (and in further PR can be unified with the caching code we have for SslStream credentials on Windows).
I stressed the caching code under a dedicated program, there does not seem to be any leakage.