1 #ifndef __ARC_NSSUTIL_H__ 
    2 #define __ARC_NSSUTIL_H__ 
    6 #include <arc/DateTime.h> 
   14     std::string subject_dn;
 
   15     std::string issuer_dn;
 
   25   bool nssInit(
const std::string& configdir);  
 
   27   bool nssExportCertificate(
const std::string& certname, 
const std::string& certfile);
 
   29   bool nssOutputPKCS12(
const std::string certname, 
char* outfile, 
char* slotpw, 
char* p12pw);
 
   31   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);
 
   33   void nssListUserCertificatesInfo(std::list<certInfo>& certInfolist);
 
   35   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);
 
   37   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);
 
   39   bool nssImportCert(
char* slotpw, 
const std::string& certfile, 
const std::string& name, 
const char* trusts = NULL, 
bool ascii = 
true);