Windows error 0x80092002, -2146885630

Detailed Error Information

CRYPT_E_BAD_ENCODE[1]

MessageAn error occurred during encode or decode operation.
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 Code8194 (0x2002)

Questions

2votes
2answers

Issues with Code Signing Certificate

My boss recently purchased a code signing certificate from Comodo. I now have the task of making it work in VS2013 using Strong Name Key signing and perhaps as a post-build event, too. He did the whole purchasing process on the same machine (Windows 8.1 64-bit laptop) and using the [...] read more
windows
visual-studio
firefox
x509certificate
code-signing
2votes
0answers

How to ImportKeyPair using a Certificate in UWP?

I have a .p12 file and I want to use it to sign Data. This is my code: public static async Task<String> Sign(String Message) { StorageFolder appInstalledFolder = Windows.ApplicationModel.Package.Current.InstalledLocation; var CerFile = await appInstalledFolder.GetFileAsync(@"Assets\Certificates\RAS_pkcs12.p12"); var CerBuffer = await FileIO.ReadBufferAsync(CerFile); string CerData = CryptographicBuffer.EncodeToBase64String(CerBuffer); await CertificateEnrollmentManager.ImportPfxDataAsync (CerData, "123456789", ExportOption.NotExportable, KeyProtectionLevel.NoConsent, InstallOptions.None, [...] read more
c#
certificate
uwp
1vote
1answer

signtool.exe -- blows up with new code signing cert: error -2146885630/0x80092002

I have a working build system, but when we got a new code signing certificate today, signtool stopped working with SignTool Error: An unexpected internal error has occurred. Error information: "Error: Store::ImportCertObject() failed." (-2146885630/0x80092002) How do I resolve? read more
signtool
1vote
0answers

Windows Store App in C# using PEM key

I have a Bluetooth device I'm connecting to that has a public key installed on it which it uses to encrypt the data it sends back to to my C# Win 8.1 Store App. On the app side I have a PEM private key supplied by the vendor of the [...] read more
c#
cryptography
windows-store-apps
0votes
1answer

C++ libcurl: schannel: Failed to import cert file cert.cer, last error is 0x80092002

I'm using libcurl libraries to call a rest endpoint and it fails on pulling the self signed cert with the error: schannel: Failed to import cert file sit.cer, last error is 0x80092002. I'm not really that well versed on c++ curl_easy_setopt(curl, CURLOPT_CAINFO, "cacert.pem"); curl_easy_setopt(curl, CURLOPT_SSLCERT, "sit.crt"); curl_easy_setopt(curl, CURLOPT_SSLKEY, "sit.key"); curl_easy_setopt(curl, [...] read more
visual-studio-2010
ssl
libcurl
0votes
1answer

Error signing an MSI package, what's going on?

I just obtained a code signing certificate from DigiCert. I've got the Microsoft Authenticode one. I was surprised they didn't ask me for a private key (I think it was generated in the browser). After exporting it from Firefox to a P12-file, I tried signing my app with it and [...] read more
windows-installer
windows-10
signing
p12

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