You can use the  following method :
void exportPKCS12File(in nsISupports aToken,
                        in nsILocalFile aFile,
                        in unsigned long count,
                        [array, size_is(count)] in nsIX509Cert aCerts);
of nsIX509CertDB interface to export  the key-pair to a file.
(http://www.xulplanet.com/references/xpcomref/ifaces/nsIX509CertDB.html#method_exportPKCS12File).
 


Here is the reference to Javascript source for PSM :
http://lxr.mozilla.org/seamonkey/source/security/manager/pki/resources/content/certManager.js#267
 
--
Subrata

Jana Nguyen wrote:
> Hi,
>
> I'm trying to export a credential (PKCS#12) out of firefox mozilla
> browser.  Are there api or applications that I can use to do this
> without having to manually export it out of the browser?
>
>
> I believe there is something called a pk12util that allows me to
> export my credential from mozilla out.  I'm running on linux and
> windowsXP.  Where can I get this pk12util and how do I set it up to
> run it?  I'm planning to write a java application that calls this
> pk12util to export my credential.
>
> Thank you, any feedback is greatly appreciated.
_______________________________________________
dev-tech-crypto mailing list
dev-tech-crypto@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-tech-crypto

Reply via email to