Problem signing a hash using the Wincrypt lib #103437
Unanswered
Williamcs1400
asked this question in
General
Replies: 1 comment
-
Please be aware that this is the discussion/Q&A area of the .NET runtime repository, and i fail to see how your question would be related to .NET. I noticed you already asked the same question over on the Microsoft Q&A site, which is a more suitable place for your question. If your question fails to garner any answers on Microsoft Q&A (or here, as unlikely as it might be), i would suggest to also ask on stackoverflow.com. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello devs.
I need to read the user certificates installed in Windows and use them to make a signature in a hash of a file previously calculated in sha256 with the private key of the chosen certificate.
To do this, I developed the following code inspired by some repositories and also official Microsoft documentation:
This method is in QT c++, it receives a PCCERT_CONTEXT of the certificate chosen to sign and a base64 hash already calculated previously.
The problem I’m facing is that the first call to the CryptSignHash method returns the error code: 2148073494 (set of keys does not exist).
I would like to clarify a few points:
Beta Was this translation helpful? Give feedback.
All reactions