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

[8.0] Unknown error (0xc0000001) from CngCommon.SignVerify in X509Certificates.Tests.PfxFormatTests_Collection.OneCert_TwoKeys_FirstWins #90877

Closed
carlossanlop opened this issue Aug 21, 2023 · 2 comments
Labels
arch-x64 area-System.Security blocking-clean-ci Blocking PR or rolling runs of 'runtime' or 'runtime-extra-platforms' Known Build Error Use this to report build issues in the .NET Helix tab os-windows runtime-coreclr specific to the CoreCLR runtime
Milestone

Comments

@carlossanlop
Copy link
Member

carlossanlop commented Aug 21, 2023

Error Blob

{
  "ErrorMessage": "System.Security.Cryptography.CryptographicException : Unknown error (0xc0000001)",
  "BuildRetry": false,
  "ErrorPattern": "",
  "ExcludeConsoleLog": true
}

Reproduction Steps

    System.Security.Cryptography.X509Certificates.Tests.PfxFormatTests_Collection.OneCert_TwoKeys_FirstWins(correctKeyFirst: False) [FAIL]
      System.Security.Cryptography.CryptographicException : Unknown error (0xc0000001)
      Stack Trace:
        /_/src/libraries/System.Security.Cryptography/src/System/Security/Cryptography/CngCommon.SignVerify.cs(42,0): at System.Security.Cryptography.CngCommon.SignHash(SafeNCryptKeyHandle keyHandle, ReadOnlySpan`1 hash, AsymmetricPaddingMode paddingMode, Void* pPaddingInfo, Int32 estimatedSize)
        /_/src/libraries/Common/src/System/Security/Cryptography/RSACng.SignVerify.cs(67,0): at System.Security.Cryptography.RSACng.SignHash(Byte[] hash, HashAlgorithmName hashAlgorithm, RSASignaturePadding padding)
        /_/src/libraries/System.Security.Cryptography/src/System/Security/Cryptography/RSA.cs(398,0): at System.Security.Cryptography.RSA.SignData(Byte[] data, Int32 offset, Int32 count, HashAlgorithmName hashAlgorithm, RSASignaturePadding padding)
        /_/src/libraries/System.Security.Cryptography/src/System/Security/Cryptography/RSA.cs(376,0): at System.Security.Cryptography.RSA.SignData(Byte[] data, HashAlgorithmName hashAlgorithm, RSASignaturePadding padding)
        /_/src/libraries/System.Security.Cryptography/tests/X509Certificates/PfxFormatTests.cs(1161,0): at System.Security.Cryptography.X509Certificates.Tests.PfxFormatTests.CheckKeyConsistencyFails(X509Certificate2 cert)
        /_/src/libraries/System.Security.Cryptography/tests/X509Certificates/PfxFormatTests_Collection.cs(71,0): at System.Security.Cryptography.X509Certificates.Tests.PfxFormatTests_Collection.ReadPfx(Byte[] pfxBytes, String correctPassword, X509Certificate2 expectedCert, X509Certificate2[] expectedOrder, Action`1 otherWork, X509KeyStorageFlags flags)
        /_/src/libraries/System.Security.Cryptography/tests/X509Certificates/PfxFormatTests_Collection.cs(21,0): at System.Security.Cryptography.X509Certificates.Tests.PfxFormatTests_Collection.ReadPfx(Byte[] pfxBytes, String correctPassword, X509Certificate2 expectedCert, X509KeyStorageFlags nonExportFlags, Action`1 otherWork)
        /_/src/libraries/System.Security.Cryptography/tests/X509Certificates/PfxFormatTests.cs(54,0): at System.Security.Cryptography.X509Certificates.Tests.PfxFormatTests.ReadPfx(Byte[] pfxBytes, String correctPassword, X509Certificate2 expectedCert, Action`1 otherWork)
        /_/src/libraries/System.Security.Cryptography/tests/X509Certificates/PfxFormatTests.cs(353,0): at System.Security.Cryptography.X509Certificates.Tests.PfxFormatTests.OneCert_TwoKeys_FirstWins(Boolean correctKeyFirst)
           at System.RuntimeMethodHandle.InvokeMethod(Object target, Void** arguments, Signature sig, Boolean isConstructor)
        /_/src/libraries/System.Private.CoreLib/src/System/Reflection/MethodBaseInvoker.cs(157,0): at System.Reflection.MethodBaseInvoker.InvokeDirectByRefWithFewArgs(Object obj, Span`1 copyOfArgs, BindingFlags invokeAttr)

Known issue validation

Build: 🔎 https://dev.azure.com/dnceng-public/public/_build/results?buildId=379159
Error message validated: System.Security.Cryptography.CryptographicException : Unknown error (0xc0000001)
Result validation: ❌ Known issue did not match with the provided build.
Validation performed at: 8/21/2023 4:49:35 PM UTC

Report

Summary

24-Hour Hit Count 7-Day Hit Count 1-Month Count
0 0 0
@carlossanlop carlossanlop added area-System.Security os-windows arch-x64 blocking-clean-ci Blocking PR or rolling runs of 'runtime' or 'runtime-extra-platforms' untriaged New issue has not been triaged by the area owner runtime-coreclr specific to the CoreCLR runtime Known Build Error Use this to report build issues in the .NET Helix tab labels Aug 21, 2023
@carlossanlop carlossanlop added this to the 8.0.0 milestone Aug 21, 2023
@ghost
Copy link

ghost commented Aug 21, 2023

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

Issue Details

Error Blob

{
  "ErrorMessage": "System.Security.Cryptography.CryptographicException : Unknown error (0xc0000001)",
  "BuildRetry": false,
  "ErrorPattern": "",
  "ExcludeConsoleLog": true
}

Reproduction Steps

    System.Security.Cryptography.X509Certificates.Tests.PfxFormatTests_Collection.OneCert_TwoKeys_FirstWins(correctKeyFirst: False) [FAIL]
      System.Security.Cryptography.CryptographicException : Unknown error (0xc0000001)
      Stack Trace:
        /_/src/libraries/System.Security.Cryptography/src/System/Security/Cryptography/CngCommon.SignVerify.cs(42,0): at System.Security.Cryptography.CngCommon.SignHash(SafeNCryptKeyHandle keyHandle, ReadOnlySpan`1 hash, AsymmetricPaddingMode paddingMode, Void* pPaddingInfo, Int32 estimatedSize)
        /_/src/libraries/Common/src/System/Security/Cryptography/RSACng.SignVerify.cs(67,0): at System.Security.Cryptography.RSACng.SignHash(Byte[] hash, HashAlgorithmName hashAlgorithm, RSASignaturePadding padding)
        /_/src/libraries/System.Security.Cryptography/src/System/Security/Cryptography/RSA.cs(398,0): at System.Security.Cryptography.RSA.SignData(Byte[] data, Int32 offset, Int32 count, HashAlgorithmName hashAlgorithm, RSASignaturePadding padding)
        /_/src/libraries/System.Security.Cryptography/src/System/Security/Cryptography/RSA.cs(376,0): at System.Security.Cryptography.RSA.SignData(Byte[] data, HashAlgorithmName hashAlgorithm, RSASignaturePadding padding)
        /_/src/libraries/System.Security.Cryptography/tests/X509Certificates/PfxFormatTests.cs(1161,0): at System.Security.Cryptography.X509Certificates.Tests.PfxFormatTests.CheckKeyConsistencyFails(X509Certificate2 cert)
        /_/src/libraries/System.Security.Cryptography/tests/X509Certificates/PfxFormatTests_Collection.cs(71,0): at System.Security.Cryptography.X509Certificates.Tests.PfxFormatTests_Collection.ReadPfx(Byte[] pfxBytes, String correctPassword, X509Certificate2 expectedCert, X509Certificate2[] expectedOrder, Action`1 otherWork, X509KeyStorageFlags flags)
        /_/src/libraries/System.Security.Cryptography/tests/X509Certificates/PfxFormatTests_Collection.cs(21,0): at System.Security.Cryptography.X509Certificates.Tests.PfxFormatTests_Collection.ReadPfx(Byte[] pfxBytes, String correctPassword, X509Certificate2 expectedCert, X509KeyStorageFlags nonExportFlags, Action`1 otherWork)
        /_/src/libraries/System.Security.Cryptography/tests/X509Certificates/PfxFormatTests.cs(54,0): at System.Security.Cryptography.X509Certificates.Tests.PfxFormatTests.ReadPfx(Byte[] pfxBytes, String correctPassword, X509Certificate2 expectedCert, Action`1 otherWork)
        /_/src/libraries/System.Security.Cryptography/tests/X509Certificates/PfxFormatTests.cs(353,0): at System.Security.Cryptography.X509Certificates.Tests.PfxFormatTests.OneCert_TwoKeys_FirstWins(Boolean correctKeyFirst)
           at System.RuntimeMethodHandle.InvokeMethod(Object target, Void** arguments, Signature sig, Boolean isConstructor)
        /_/src/libraries/System.Private.CoreLib/src/System/Reflection/MethodBaseInvoker.cs(157,0): at System.Reflection.MethodBaseInvoker.InvokeDirectByRefWithFewArgs(Object obj, Span`1 copyOfArgs, BindingFlags invokeAttr)
Author: carlossanlop
Assignees: -
Labels:

area-System.Security, os-windows, arch-x64, blocking-clean-ci, untriaged, runtime-coreclr, Known Build Error

Milestone: 8.0.0

@ghost ghost removed the untriaged New issue has not been triaged by the area owner label Aug 21, 2023
@vcsjones
Copy link
Member

Dupe of #29683

@jozkee jozkee closed this as not planned Won't fix, can't repro, duplicate, stale Aug 21, 2023
@ghost ghost locked as resolved and limited conversation to collaborators Sep 20, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
arch-x64 area-System.Security blocking-clean-ci Blocking PR or rolling runs of 'runtime' or 'runtime-extra-platforms' Known Build Error Use this to report build issues in the .NET Helix tab os-windows runtime-coreclr specific to the CoreCLR runtime
Projects
None yet
Development

No branches or pull requests

3 participants