2.14 Retrieving Server Certificates

Server certificates are retrieved by calling NPKIGetServerCertificates. If the certificates' in the chain are needed, they can be accessed by calling NPKIChainCertInfo.

  1. Call NPKIFindServerCertificateNames to get a list of all certificate names for a server. For each certificate name, call NPKIGetServerCertificateStatus to determine whether server certificates are available.

  2. Call NPKIGetServerCertificates to retrieve the server certificates and the number of certificates in the chain.

  3. To access the chain certificates, call NPKIChainCertInfo.

For a sample implementation of this task, see RetrieveServerCertificate.