-
Notifications
You must be signed in to change notification settings - Fork 4.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
enable SslStream_ClientCertificate_SendsChain test on macOS #48209
Conversation
Tagging subscribers to this area: @dotnet/ncl, @vcsjones Issue DetailsThe reason why this was failing is different from #46837.
|
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)) |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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.
Draft Pull Request was automatically closed for inactivity. It can be manually reopened in the next 30 days if the work resumes. |
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.