Windows error 0x80094004, -2146877436

Detailed Error Information

CERTSRV_E_PROPERTY_EMPTY[1]

MessageThe requested property value is empty.
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 Code16388 (0x4004)

Questions

1vote
1answer

Trying to create certificate request from existing public key (programmatically)

I am trying to create certificate request programmatically from existing public key. But I get an "The requested property value is empty. (Exception from HRESULT: 0x80094004)" exception. Here is my code: private static string CreateCertRequestMessage(string encodedPublicKeyInfo) { CObjectId objAlg = new CObjectId(); objAlg.InitializeFromAlgorithmName( ObjectIdGroupId.XCN_CRYPT_PUBKEY_ALG_OID_GROUP_ID, ObjectIdPublicKeyFlags.XCN_CRYPT_OID_INFO_PUBKEY_ANY, AlgorithmFlags.AlgorithmFlagsNone, "RSA"); CX509PublicKey objPublicKey = [...] read more
c#
pki
certenroll
0votes
0answers

Renewal certificate with new key pairs

I want to create CX509CertificateRequestPkcs with initializefromcertificate And i want to use X509RequestInheritOptions.InheritNewSimilarkey to generate new keypair where original certificate'key pair exsit But i get error CertEnroll::CX509CertificateRequestPkcs7::InitializeFromCertificate: The requested property value is empty. 0x80094004 (-2146877436 CERTSRV_E_PROPERTY_EMPTY)" This is my code X509Store store = new X509Store(StoreLocation.CurrentUser); store.Open(OpenFlags.ReadOnly); foreach (X509Certificate2 c in [...] read more
python
x509certificate
x509certificate2
certenroll

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