78
edits
| Line 80: | Line 80: | ||
</table> | </table> | ||
* Unlike the name suggest, nsIX509CertDB.importCertsFromFile is not for importing Certs from a Database file. It is rather for importing a single CA certificate (stupid plural) from a file. XPCShell will crash and burn even if you are loading a valid certificate. XULRunner will not however. Important note to keep in mind while developing. | * Unlike the name suggest, nsIX509CertDB.importCertsFromFile() is not for importing Certs from a Database file. It is rather for importing a single CA certificate (stupid plural) from a file. XPCShell will crash and burn even if you are loading a valid certificate. XULRunner will not however. Important note to keep in mind while developing. | ||
* It is also good to note that cert8.db, key3.db, and secmod.db do not exist until you use the function for the first time. XULRunner does not create these files when creating a profile. | * It is also good to note that cert8.db, key3.db, and secmod.db do not exist until you use the function for the first time. XULRunner 1.8.1.3 does not create these files when creating a profile. You can copy over *.db certificate files from a firefox directory instead. | ||
* | * The latest trunk version at the time of writing (1.9a I guess. 2007-05-30) do create *.db files. '''However''', despite being 64/128/128 KB in size, there is nothing in them. So when you first load notary, there is 0 rows. I created a test certificate and put it in, and that seemed to load it. You cannot copy over certificates from firefox. I do not know how to fix this. | ||
* The | * Importing certificates using nsIX509CertDB.importCertsFromFile() saves automatically. | ||
==Regarding Certificates in trees== | ==Regarding Certificates in trees== | ||
edits