We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7e5e573 commit 306ced2Copy full SHA for 306ced2
src/libraries/System.Security.Cryptography/tests/X509Certificates/ExportTests.cs
@@ -834,9 +834,17 @@ internal static (int certs, int keys) VerifyPkcs12(
834
AssertEncryptionAlgorithm(epki.EncryptionAlgorithm);
835
keys++;
836
}
837
- else if (safeBag is Pkcs12CertBag && wasEncryptedSafe)
+ else if (safeBag is Pkcs12CertBag)
838
{
839
- certs++;
+ if (wasEncryptedSafe)
840
+ {
841
+ certs++;
842
+ }
843
+ else if (PlatformDetection.IsWindows10OrLater && !PlatformDetection.IsWindows10Version1703OrGreater)
844
845
+ // Windows 10 before RS2 / 1703 did not encrypt certs, but count them anyway.
846
847
848
849
850
0 commit comments