ARC SDK
Data Structures | Functions
AuthN Namespace Reference

Code for handling Network Security Services (NSS) credentials. More...

Data Structures

struct  certInfo
 NSS certificate information. More...
 

Functions

char * nss_get_password_from_console (PK11SlotInfo *slot, PRBool retry, void *arg)
 
bool nssInit (const std::string &configdir)
 
bool nssExportCertificate (const std::string &certname, const std::string &certfile)
 
bool nssOutputPKCS12 (const std::string certname, char *outfile, char *slotpw, char *p12pw)
 
bool nssGenerateCSR (const std::string &privkey_name, const std::string &dn, const char *slotpw, const std::string &outfile, std::string &privk_str, bool ascii=true)
 
void nssListUserCertificatesInfo (std::list< certInfo > &certInfolist)
 
bool nssCreateCert (const std::string &csrfile, const std::string &issuername, const char *passwd, const int duration, const std::string &vomsacseq, std::string &outfile, bool ascii=true)
 
bool nssImportCertAndPrivateKey (char *slotpw, const std::string &keyfile, const std::string &keyname, const std::string &certfile, const std::string &certname, const char *trusts=NULL, bool ascii=true)
 
bool nssImportCert (char *slotpw, const std::string &certfile, const std::string &name, const char *trusts=NULL, bool ascii=true)
 

Detailed Description

Code for handling Network Security Services (NSS) credentials.

Function Documentation

bool AuthN::nssInit ( const std::string &  configdir)

Initializes nss library

Parameters
configdirfull path to the nss db