Server certificates should be added to the certificate list by calling NPKICertificateList, then stored by a calling NPKIStoreServerCertificatesFromCertificateList.
NPKICertificateList—using the clear flag to delete all old certificates from the list
NPKICertificateList—call this function for each of the certificates in the certificate chain, using the add flag to add each certificate to the list
NPKICertificateList—using the sort flag to sort the list
NPKIStoreServerCertificatesFromCertificateList—to store the certificate list
For a sample implementation of this task, see StoreServerCerts.