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

enable SslStream_ClientCertificate_SendsChain test on macOS #48209

Closed
wants to merge 5 commits into from

Conversation

wfurt
Copy link
Member

@wfurt wfurt commented Feb 12, 2021

The reason why this was failing is different from #46837.
I changed where we store intermediate certificates and did little bit more refactoring on CleanupCertificates as I did not want to add third identical block. #46837 will need additional work.

@wfurt wfurt added os-mac-os-x macOS aka OSX test-enhancement Improvements of test source code labels Feb 12, 2021
@wfurt wfurt requested review from aik-jahoda and a team February 12, 2021 04:05
@wfurt wfurt self-assigned this Feb 12, 2021
@ghost
Copy link

ghost commented Feb 12, 2021

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

Issue Details

The reason why this was failing is different from #46837.
I changed where we store intermediate certificates and did little bit more refactoring on CleanupCertificates as I did not want to add third identical block. #46837 will need additional work.

Author: wfurt
Assignees: wfurt
Labels:

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

Milestone: -

public async Task SslStream_ClientCertificate_SendsChain()
{
List<SslStream> streams = new List<SslStream>();
TestHelper.CleanupCertificates("SslStream_ClinetCertificate_SendsChain");
(X509Certificate2 clientCertificate, X509Certificate2Collection clientChain) = TestHelper.GenerateCertificates("SslStream_ClinetCertificate_SendsChain", serverCertificate: false);
using (X509Store store = new X509Store(StoreName.CertificateAuthority, StoreLocation.CurrentUser))
using (X509Store store = new X509Store(PlatformDetection.IsOSXLike ? StoreName.My : StoreName.CertificateAuthority, StoreLocation.CurrentUser))
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we add a comment explaining why OSX is different?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ok. I will. It is primarily #48207 but there still seems to be another trickery in CI. I'm looking into it and I'll hold this back until clean CI pass.

Base automatically changed from master to main March 1, 2021 09:07
@wfurt wfurt marked this pull request as draft March 15, 2021 16:32
@ghost ghost closed this Apr 14, 2021
@ghost
Copy link

ghost commented Apr 14, 2021

Draft Pull Request was automatically closed for inactivity. It can be manually reopened in the next 30 days if the work resumes.

@ghost ghost locked as resolved and limited conversation to collaborators May 14, 2021
@karelz karelz added this to the 6.0.0 milestone May 20, 2021
This pull request was closed.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-System.Net.Security os-mac-os-x macOS aka OSX test-enhancement Improvements of test source code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants