4.9 NPKIExportServerKey Flags

These flags determine which certificates are obtained by calls to: NPKIGetCACertificates, NPKIGetServerCertificates, NPKIExportServerKey, NPKIExportUserKey and NPKIStoreServerCertificates. These flags typically are used for more advanced applications.

Value

Name

Description

0x01

PKI_OBJECT_KEY_CERTIFICATE

Use this flag when exporting or retrieving information about the object certificate.

0x02

PKI_TRUSTED_ROOT_CERTIFICATE

Use this flag when exporting or retrieving information about the trusted root certificate.

IMPORTANT:This flag is not for use with NPKIExportServerCert. Use the flag the flag PKI_SELF_SIGNED_CERTIFICATE instead.

0x04

PKI_CHAIN_CERTIFICATE

Use this flag when exporting or retrieving information about the certificate chain.

0x10

PKI_SELF_SIGNED_CERTIFICATE

This flag is not for use with NPKIGetServerCertificates. Use this flag when exporting or retrieving information on the self-signed certificate.