NPKIImportServerKey
Imports a server’s private key and corresponding
certificates from a PFX format (also known as PKCS #12)
to a KMO (formerly NWPKIImportServerKey).
Syntax
#include "npki.h"
void NPKIImportServerKey(
const NPKIContext context,
const unicode *serverDN,
const unicode *certificateName,
const unicode *password,
const nuint32 flags,
const nuint32 pfxSize,
const nuint8 *pfx);
Parameters
- context
- (IN) Specifies the NPKI context for the request.
- serverDN
- (IN) Specifies the FDN eDirectory server. This must
be a valid eDirectory server in the current tree.
- certificateName
- (IN) Specifies the name of the certificate and private
key you want to import. If the KMO corresponding to certificateName 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 pointed in pfx.
- pfx
- (IN) Specifies to 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