Windows error 0x8009200C, -2146885620

Detailed Error Information

CRYPT_E_NO_DECRYPT_CERT[1]

MessageCannot find the certificate and private key to use for decryption.
Declared inwinerror.h

HRESULT analysis[2]

FlagsSeverityFailure
Reserved (R)false
OriginMicrosoft
NTSTATUSfalse
Reserved (X)false
FacilityCode9 (0x009)
NameFACILITY_SSPI[2][1]
DescriptionThe source of the error code is the Security API layer.[2][1]
Error Code8204 (0x200c)

Questions

1vote
0answers

CryptDecryptMessage returns CRYPT_E_NO_DECRYPT_CERT when executed inside service running under LSA

I created an RSA Certificate with a Private Key in LocalMachine/My store. I then created a simple Windows console app in C to: * locate the cert by thumbprint * encrypt a buffer with CryptEncryptMessage * write the buffer out to a file I then wrote a small service app, [...] read more
c
windows
service
certificate
cryptoapi

Comments

Leave a comment

(plain text only)

Sources

  1. winerror.h from Windows SDK 10.0.14393.0
  2. https://msdn.microsoft.com/en-us/library/cc231198.aspx

User contributions licensed under CC BY-SA 3.0