[EMAIL PROTECTED] wrote: > I try to import a pkcs#12 into Mozilla Key Store by sending the > pkcs#12 via http with contentType=application/x-pkcs12, [...]
I don't recall the ability to download/import a p12 file ever being
designed into netscape or mozilla.
Your only option is to save the .p12 file to disk, and then import it.
right click, then "save link target as". I think that will save it to disk.
There would be another option to do it, even if it will be seriously more complex than to just send content as "application/x-pkcs12".
If you use a signed script or an extension, you can call from it the XPCOM nsIX509CertDB interface (frozen) that has a function for that : importPKCS12File.
Unfortunately that function expects the PKCS12 to be inside a file (expecting nsILocalFile as input parameter), so you might have to write it to disk to do the import (the signed script or extension should have enough rights to do that). You might also to avoid that create a class with the nsILocalFile interface that provides the content from memory.
_______________________________________________
mozilla-crypto mailing list
[EMAIL PROTECTED]
http://mail.mozilla.org/listinfo/mozilla-crypto
