NPKIGetHandleToServerKey
Obtains a NICI object handle to a server private key (formerly NWPKIGetHandleToServerKey).
#include "npkikey.h"
NWRCODE NPKIGetHandleToServerKey(
const NPKIContext context,
const unicode *serverDN,
const unicode *certificateName,
NICI_CC_HANDLE ccsCtx,
NICI_OBJECT_HANDLE *pkiKeyHandle);
Returns 0 if successful, or an eDirectory, NICI, or PKI error code if not successful.
0x2222 93 09 Read Key
After a successful return from this function, pkiKeyHandle contains a handle to a NICI object that can then be used in calling other NICI functions.
IMPORTANT:This function does not work unless it is called on the server for which the key was generated (that is, serverDN).