joshuaaa wrote:
>               var file =
> Components.classes[nsLocalFile].createInstance(nsILocalFile);
>               file.initWithPath("path\to\cert.p12");

What path name exactly are you using, and on what platform? My guess is
that you're not really stumbling on importPKCS12File(), but on creating
the file object with a proper path name.

If you insert something like "alert(file.exists());" after the
initWithPath call, does it really say "true" then? Are there any
messages in the Error Console? (I would expect
NS_ERROR_FILE_UNRECOGNIZED_PATH or similar.) Under Windows, try
"c:\\path\\to\\cert.p12" or so, that should do the trick.

Kaspar
_______________________________________________
dev-tech-crypto mailing list
dev-tech-crypto@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-tech-crypto

Reply via email to