Re: Importing CA Cert into Firefox using JSS

2006-07-23 Thread Mikmorg
OK, I think I've written a little sample program that works. Given 2 args (the path to the profile, and the path to the .crt file for the new CA to add), this looks like it works: Anyway, I plan to put some of this code inside my copy of selenium-rc's proxy server (for those who care). If anyone

Re: Importing CA Cert into Firefox using JSS

2006-07-23 Thread Mikmorg
Thank you both for your quick responses. I think CryptoManager is what I have been looking for. The need was for this to be in Java, as I am putting this code in a Java project (see selenium; selenium-rc). I have found how to import a CA, but am still looking for a way to mark it as a trusted we

Re: Importing CA Cert into Firefox using JSS

2006-07-22 Thread Nelson B
Mikmorg wrote: > I am looking for a way to import a certificate into Firefox's cert8.db, > and key3.db files. > As far as I can tell, it uses PKCS #11. > > My main goal is to script the import of a CA for a new profile. > > I assume this could be done without much trouble in > org.mozilla.jss.pkc

Re: Importing CA Cert into Firefox using JSS

2006-07-22 Thread Chandrasekar Kannan
Have you looked at this .. http://www.mozilla.org/projects/security/pki/jss/javadoc/org/mozilla/jss/CryptoManager.html There's a couple of APIs here that will help you import ca certs. --Chandra Mikmorg wrote: I am looking for a way to import a certificate into Firefox's cert8.db, and key3.

Importing CA Cert into Firefox using JSS

2006-07-22 Thread Mikmorg
I am looking for a way to import a certificate into Firefox's cert8.db, and key3.db files. As far as I can tell, it uses PKCS #11. My main goal is to script the import of a CA for a new profile. I assume this could be done without much trouble in org.mozilla.jss.pkcs11 somehow, but I have found