Certificate install on CIV chip

R, Babu 1 Reputation point
2020-08-05T20:57:27.617+00:00

Hi Team,

I am trying to install a SmartCardLogon certificate into CIV chip and getting below error while installing the certificate.

Below is my code:

        CX509Enrollment objEnroll = new CX509Enrollment();
        try
        {
            objEnroll.Initialize(X509CertificateEnrollmentContext.ContextUser);
            objEnroll.InstallResponse(InstallResponseRestrictionFlags.AllowUntrustedRoot,certificate, EncodingType.XCN_CRYPT_STRING_BASE64, null);
        }
        catch (Exception ex)
        {
            throw new PIVClientException(sError,ex);
        }

And the error is below:

CertEnroll::CX509Enrollment::InstallResponse: Invalid pointer 0x80004003 (-2147467261 E_POINTER)

Thanks in advance. Any help would be really appreciated.

Windows Server Security
Windows Server Security
Windows Server: A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.Security: The precautions taken to guard against crime, attack, sabotage, espionage, or another threat.
1,774 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Teemo Tang 11,366 Reputation points
    2020-08-06T06:49:31.977+00:00

    Try to use Internet Explorer for certificate install. Some users got same error when using Chrome for Personal Certificate request.
    In fact, for code question, I suggest to ask for help from scripting forum
    https://social.technet.microsoft.com/Forums/en-US/home?forum=ITCG
    The reason why we recommend posting appropriately is you will get the most qualified pool of respondents, and other partners who read the forums regularly can either share their knowledge or learn.
    Thanks for your understanding and cooperating.

    0 comments No comments