Windows error 0x8009000D, -2146893811

Detailed Error Information

NTE_NO_KEY[1]

MessageKey does not exist.
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 Code13 (0x000d)

Questions

3votes
2answers

Problems generating a self-signed 1024-bit X509Certificate2 using the RSA AES provider

I am trying to generate an X509Certificate2 object using the Microsoft AES Cryptographic Provider: > CALG_AES_256 (0x00006610) 256 bit AES. This algorithm is supported by the > Microsoft AES Cryptographic Provider. My problem is that my call to CryptGenKey(providerContext, 0x6610, 0x4000001, out cryptKey) fails with the following error: > An [...] read more
c#
.net
ssl
encryption
x509certificate2
3votes
1answer

How to use CAPI's CryptImportKey with PEM encode public key from OpenSSL?

How do I get the Microsoft's CryptoAPI CryptImportKey function to import a PEM encoded key? It actually works but CryptDecrypt returns an error. // 1. Generate a Public/Private RSA key pair like so: openssl genrsa -out private.pem 2048 openssl rsa -in private.pem -out public.pem -outform PEM -pubout // 2. Create [...] read more
c++
openssl
cryptography
pem
mscapi
1vote
1answer

Server 2012 R2 RDP failed with internal error has occurred

I have a 2012 R2 server for CRM that I can no longer RDP into. The error I get is "This computer can't connect to the remote computer." In the event logs, I see 2 events that seem relevant. Event 1057: The RD Session Host Server has failed to create [...] read more
windows
windows-server-2012-r2
ssl-certificate
rdp
1vote
1answer

CryptGetProvParam PP_ENUMCONTAINERS shows me only default certificate on smart card

I have Gemalto.NET Smart Card. I imported 2 certificates into it using Gemalto tools, which use sconnect (which as I suspect use Crypto API to do it when used in IE). When I run certutil -key -csp "Microsoft Base Smart Card Crypto Provider" I have following result > Microsoft Base [...] read more
c#
smartcard
cryptoapi
0votes
2answers

Key does not exist when executing New-SelfSignedCertificate

I've written a script that'll create certificates for me and that should sign them all using another certificate. $dnsNames = @("example.com", "example.org") New-SelfSignedCertificate -CertStoreLocation Cert:\LocalMachine\My -DnsName $dnsNames -FriendlyName "Example Cert" -Signer Cert:\LocalMachine\Root\QWREEWRQ12123132QWEQWE123123 But when I run this script I get the error message CertEnroll::CSignerCertificate::Initialize: Key does not exist. 0x8009000d (-2146893811 [...] read more
windows
powershell
certificate
0votes
1answer

Asymetric encryption algorithm which allows to use public and private key for both encryption and decryption

I have the following working asymetric encryption implementation: private static RSAParameters privateKey; private static RSAParameters publicKey; private static void RSA() { var rsa = new RSACryptoServiceProvider(); privateKey = rsa.ExportParameters(true); publicKey = rsa.ExportParameters(false); byte[] originalMessage = GenerateRandomData(); byte[] encryptedMessage = Using(publicKey).Encrypt(originalMessage, false); byte[] decryptedMessage = Using(privateKey).Decrypt(encryptedMessage, false); Debug.Assert(originalMessage.SequenceEqual(decryptedMessage)); } private static [...] read more
c#
encryption
public-key-encryption
public-key

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