NPKICertInfo

Retrieves a newly created X.509 certificate with its corresponding size (formerly NWPKICertInfo).

Syntax

    #include "npki.h"
    
    NWRCODE NPKICertInfo(
       const NPKIContext     context, 
       pnuint32              certSize, 
       nuint8 const        **cert);
    

Parameters

context
(IN) Specifies the NPKI context for the request.
certSize
(OUT) Returns the size of the certificate.
cert
(OUT) Returns a constant pointer to the X.509 DER-encoded certificate.

Return Values

Returns 0 if successful, or an eDirectory or PKI error code if not successful.

Remarks

A successful call to NPKIGenerateCertificateFromCSR or NPKICreateServerCertificate must be made immediately before calling this function.

See Also