Skip to content
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

fix credential caching on macOS #73577

Merged
merged 1 commit into from
Aug 9, 2022
Merged

fix credential caching on macOS #73577

merged 1 commit into from
Aug 9, 2022

Conversation

wfurt
Copy link
Member

@wfurt wfurt commented Aug 8, 2022

The behavior was not predictable and depends on order of tests (and parallelism) The credential cache is based on specific leaf certificate and not entire chain. So when using same certificate with different chain we may get unexpected results.

Minimal fix for this is to copy certificates (and other info) from SslAuthenticationOptions that is specific to particular SslStream instead of credential that can be shared among many sessions. Unlike Windows, the credentials are somewhat useless anyway and cost of setting up the chain is identical.

contributes to #73295

@wfurt wfurt added this to the 7.0.0 milestone Aug 8, 2022
@wfurt wfurt requested a review from a team August 8, 2022 17:47
@wfurt wfurt self-assigned this Aug 8, 2022
@ghost
Copy link

ghost commented Aug 8, 2022

Tagging subscribers to this area: @dotnet/ncl, @vcsjones
See info in area-owners.md if you want to be subscribed.

Issue Details

The behavior was not predictable and depends on order of tests (and parallelism) The credential cache is based on specific leaf certificate and not entire chain. So when using same certificate with different chain we may get unexpected results.

Minimal fix for this is to copy certificates (and other info) from SslAuthenticationOptions that is specific to particular SslStream instead of credential that can be shared among many sessions. Unlike Windows, the credentials are somewhat useless anyway and cost of setting up the chain is identical.

contributes to #73295

Author: wfurt
Assignees: wfurt
Labels:

area-System.Net.Security, os-mac-os-x

Milestone: 7.0.0

@wfurt wfurt merged commit 77b39a5 into dotnet:main Aug 9, 2022
@wfurt wfurt deleted the macCreds branch August 9, 2022 23:21
@ghost ghost locked as resolved and limited conversation to collaborators Sep 9, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants