NPKIImportCAKey
Imports an organization’s CA private key and
corresponding certificates from a PFX format (also known as PKCS #12)
to a CA object (formerly NWPKIImportCAKey).
Syntax
#include "npki.h"
void NPKIImportCAKey(
const NPKIContext context,
const unicode *hostServerDN,
const unicode *organizationlCAName,
const unicode *password,
const nuint32 flags,
const nuint32 pfxSize,
const nuint8 *pfx);
Parameters
- context
- (IN) Specifies the NPKI context for the request.
- hostServerDN
- (IN) Specifies the FDN of the server to host the
CA.
- organizationlCAName
- (IN) Specifies the name of the organizational CA
object certificate and private key you want to import. If the CA
object does not exist, one is created.
- password
- (IN) Specifies the password used to decrypt the
private key and certificates.
- flags
- (IN) Specifies options for importing the server
key and certificate. The flags currently defined are:PKI_OVERWRITE—Overwrites
any information currently associated with this certificate name
for the indicated server.
- pfxSize
- (IN) The size of the data in pfx.
- pfx
- (IN) Specifies the PKCS #12 encoded data
to import.
Return Values
Returns 0 if successful, or an eDirectory, NICI, or a PKI
error code if not successful.
PKI NCP Calls
0x2222 93 10 Write Key