Skip to content

Conversation

@HaoK
Copy link
Member

@HaoK HaoK commented Jan 6, 2021

Fixes #26871

Root cause appears to be Arm64 having less memory so the cert was getting finalized, see #26871 (comment) for more details

@Pilchie Pilchie added the area-dataprotection Includes: DataProtection label Jan 7, 2021
@HaoK HaoK changed the title Debug arm dataprotection Fix issue with cert being finalized in data protection test Jan 7, 2021
@HaoK HaoK requested a review from a team January 7, 2021 20:38
@HaoK HaoK marked this pull request as ready for review January 7, 2021 20:38
}

WithUniqueTempDirectory(directory =>
using (var imported = new X509Certificate2(filePath, "password", X509KeyStorageFlags.Exportable))
Copy link
Member

Choose a reason for hiding this comment

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

🔑

Copy link
Member

@captainsafia captainsafia left a comment

Choose a reason for hiding this comment

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

It looks like the only meaningful change is wrapped up the certificate reference in a disposable clause.

That seems like a reasonable fix for the memory issue to me.

@HaoK HaoK added the auto-merge label Jan 8, 2021
@ghost
Copy link

ghost commented Jan 8, 2021

Hello @HaoK!

Because this pull request has the auto-merge label, I will be glad to assist with helping to merge this pull request once all check-in policies pass.

p.s. you can customize the way I help with merging this pull request, such as holding this pull request until a specific person approves. Simply @mention me (@msftbot) and give me an instruction to get started! Learn more here.

@ghost ghost merged commit f4d10f6 into master Jan 8, 2021
@ghost ghost deleted the haok/cert branch January 8, 2021 18:33
This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area-dataprotection Includes: DataProtection

Projects

None yet

Development

Successfully merging this pull request may close these issues.

DataProtectionProviderTests.System_UsesProvidedDirectoryAndCertificate throws a CryptographicException on the Windows.10.Arm64.Open Helix queue

5 participants