CertEnroll::CX509Enrollment::p_InstallResponse returns error 0x80095002

Hi all, One of the issues we may find when trying the code in my post How to create a certificate request that uses key archival with CertEnroll (JavaScript) is the following: Imagine we could finally create a request successfully. We sent it to the CA and then we tried to install its response (the .cer or…


How to create a certificate request that uses key archival with CertEnroll (JavaScript)

Hi all, If you want to request certificates to a CA and make use of Key Archival feature, first you need to prepare the environment to enable this feature on your CA: Certificate Services example implementation: Key archival and recovery or Implementing Key Archival Walkthrough will be of assistance here. After that you could use a code…


How to create a certificate request with CertEnroll (ASP)

Hi all, The other day I posted a Javascript sample which shows how to use CertEnroll COM component to create a certificate request and install the response from the CA (Certificate Authority): How to create a certificate request with CertEnroll (JavaScript). The installation part of that sample assumed that we got a Base64 text with the…


How to create a certificate request with CertEnroll (JavaScript)

Hi all, The following Javascript sample shows how to use CertEnroll COM component to create a certificate request:<html> <head> <title>Certificate Request test</title> </head> <body> <object id=”objCertEnrollClassFactory” classid=”clsid:884e2049-217d-11da-b2a4-000e7bbb2b09″></object> <script language=”javascript”> function CreateRequest() { document.write(“<br>Create Request…”); try { // Variables var objCSP = objCertEnrollClassFactory.CreateObject(“X509Enrollment.CCspInformation”); var objCSPs = objCertEnrollClassFactory.CreateObject(“X509Enrollment.CCspInformations”); var objPrivateKey = objCertEnrollClassFactory.CreateObject(“X509Enrollment.CX509PrivateKey”); var objRequest = objCertEnrollClassFactory.CreateObject(“X509Enrollment.CX509CertificateRequestPkcs10”) var…

54

How to create a certificate request with CertEnroll and .NET (C#)

Hi all, The following C# sample shows how to use CertEnroll COM component to create a certificate request, send the request to the CA, get the response from the CA, and install the new certificate in the machine: (Note that this sample is a WinForms app with 3 buttons -createRequestButton, sendRequestButton, acceptPKCS7Button- and 2 textboxes -requestText…

102