Windows error 0x80090029, -2146893783

Detailed Error Information

NTE_NOT_SUPPORTED[1]

MessageThe requested operation is not supported.
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 Code41 (0x0029)

Questions

4votes
0answers

How to get a certificate store from a smart card (USB Token) using CNG?

I'm using Crypto API's CryptAcquireContext function (https://docs.microsoft.com/en-us/windows/desktop/api/Wincrypt/nf-wincrypt-cryptacquirecontexta) to get access to my Certificate Store contained on my USB Token, and this is working like a charm! However, the CryptAcquireContext function is deprecated and the Crypto API documentation recommends the use of CNG to achieve the same results. All my problem [...] read more
delphi
certificate
cng
1vote
0answers

Smartcard logon - where to find more details on "the requested operation is not supported"?

I have written a custom credential provider and a key storage provider to do a custom logon for windows where I use my smartphone instead of a card reader. The certificate is delivered to my key storage provider via bluetooth and lsass.exe calls the SignHash-function of my key storage provider. [...] read more
windows
certificate
smartcard
event-log
winlogon
1vote
1answer

New-SelfSignedCertificateEx fails with NTE_NOT_SUPPORTED

I am trying to use PowerShell to create a self-signed certificate for encrypting and decrypting data in a development environment. I am using the excellent New-SelfSignedCertificateEx PowerShell script. My OS is Windows 10 and I have the Windows Management Framework 5.0 installed. Here is the script: New-SelfSignedCertificateEx ` -Subject "CN=Test, [...] read more
powershell
encryption
self-signed
1vote
1answer

Import a persistent key in to Windows key storage using CNG storage functions

I'm trying to import a persistent RSA public key into the key storage. I read on the CNG help page that it's possible for private keys and I wonder if I can also apply is to public keys (specifically the BCRYPT_RSAPUBLIC_BLOB). I've tried with the following code, but in the [...] read more
c++
key
blob
cng
0votes
0answers

Usage of Win32 API Ncrypt and Bcrypt : why the tutorial code fails after a very simple variation?

I practice using the win32 APIs to do some crypto stuff. I began with the code demo found here. It compiled it with Visual 2017 under Windows 10 x64, and it worked fine. Then I tried to play a little with it: changing signature algo, hash algo and key storage. [...] read more
c
visual-studio
security
winapi
cryptography
0votes
0answers

Error while configuring MS Server 2019 AD Certifification Service

every time I try to configure the Active Directory Certificate Services as Root-CA (Enterprise CA), I get the following error: "An error occurred when creating the new key container "XXX". Please make sure the CSP is installed ocrrectly or select another CSP. The requested operation is not supported 0x80090029 (-2146893783 [...] read more
server
active-directory
ca
0votes
1answer

CertUtil Import pfx failed: NTE_NOT_SUPPORTED

I am attempting to set the KeySpec flag on an existing certificate for use in a SQL server encryption role. Current KeySpec is 0, and I need it to be a 1. The way to do this is by first exporting the cert, its private key, and key usages into [...] read more
sql
certificate
pki
certutil
0votes
0answers

How to export EC private key as PKCS#1 or PKCS#8 format from certificate store by CNG?

I tried to export private key from certificate store by CNG API. It work fine when export RSA private key, but failed in EC private key. The code failed in NCryptExportKey() with 0x80090029. Is there any document from MS said: Export EC private key not support? or any sample code? [...] read more
c++
cryptography
cryptoapi
ecdsa
cng
0votes
0answers

System.Security.Cryptography.CryptographicException: 'The requested operation is not supported

Following the example of creating an identity server from the identityserver4 documents, I received the following exception on the line AddDeveloperSigningCredentials() System.Security.Cryptography.CryptographicException HResult=0x80090029 Message=The requested operation is not supported. Source=System.Core StackTrace: at System.Security.Cryptography.NCryptNative.ExportKey(SafeNCryptKeyHandle key, String format) at System.Security.Cryptography.CngKey.Export(CngKeyBlobFormat format) at System.Security.Cryptography.RSACng.ExportParameters(Boolean includePrivateParameters) at Microsoft.Extensions.DependencyInjection.IdentityServerBuilderExtensionsCrypto.CreateRsaSecurityKey() at Microsoft.Extensions.DependencyInjection.IdentityServerBuilderExtensionsCrypto.AddDeveloperSigningCredential(IIdentityServerBuilder builder, Boolean persistKey, String [...] read more
identityserver4
0votes
1answer

Structure of the certificate pointed to by NCRYPT_KEY_HANDLE

I've written a credential provider and a key storage provider to logon to windows via certificate. As the documentation in this points is quite vague I used different samples from Microsoft to get things working. I think I'm nearly there, but the logon behaves unpredictably. Sometimes I get through to [...] read more
windows
certificate
kerberos
cng

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