I'm writing a utility as part of an automated install program that will open the Firefox certificate database and install a local CA certificate. This is what I've tried:
dbHandle = (CERTCertDBHandle*)PORT_ZAlloc(sizeof(CERTCertDBHandle)); rv = CERT_OpenCertDBFilename(dbHandle, (char*)dbPath.c_str(), PR_FALSE); The dbPath is a relative path to the cert8.db file. The problem is that CERT_OpenCertDBFilename fails but PORT_GetError returns nothing. If this were to work I was going to call CERT_ImportCerts to put my certificate in. Is this the right way to do it or is there a better way? Thanks Brian _______________________________________________ dev-tech-crypto mailing list [email protected] https://lists.mozilla.org/listinfo/dev-tech-crypto

