NPKIExportUserKey
Exports a private key and the corresponding certificates for the currently logged-in user in Personal Information Exchange Syntax (PFX) format (formerly NWPKIExportUserKey).
#include "npki.h"
NWRCODE NPKIExportUserKey(
const NPKIContext context,
const unicode *nickname,
const unicode *password,
const nuint32 flags,
pnuint32 *pfxSize,
nuint8 const **pfx);
Returns 0 if successful, or an eDirectory, NICI or PKI error code if not successful.
0x2222 93 09 Read Key
The key and certificate are encrypted using the input password as specified in the PKCS #12. For a sample implementation of this task, see ExportUserCert.