NPKIFindKeyGenServersForUser
Finds the servers that can be used to generate a public/private key pair (that is, a certificate) for the users that reside in the specified name context (formerly NWPKIFindKeyGenServersForUser).
#include "npki.h" NWRCODE NWPKFindKeyGenServersForUser( const NPKIContext context, const unicode *nameContextDN, pnuint32 numberOfServers);
Returns 0 if successful, or an eDirectory or PKI error code if not successful.
The requirements for a server to generate a key pair for a user are:
NPKIFindKeyGenServersForUser finds all of servers that meet the first requirement. Call NPKIGetServerInfo to determine if the selected server meets the second requirement. When a successful call to NPKIFindKeyGenServersForUser is made, the server names are stored in context specific values that can be accessed by calling NPKIServerNames.
NOTE:Multiple calls to NPKIServerNames are necessary if more than one server name is available.