Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

export Certificate with JSS to PCKS12

8 views
Skip to first unread message

keller...@hotmail.de

unread,
Jun 1, 2007, 7:48:38 AM6/1/07
to
Does anyone know, how to export an Certificate to PKCS12 with JSS.
I have found a Code-Sample, but this doesnt work, because the Metho
privateKey.getEncoded() allways returns null.

Thank for hints

Glen Beasley

unread,
Jun 1, 2007, 2:41:53 PM6/1/07
to keller...@hotmail.de, dev-tec...@lists.mozilla.org
most private keys store on a token do not support encoding and therefore
null is correctly returned.
You would need to wrap the private key take a look at

http://mxr.mozilla.org/security/source/security/jss/org/mozilla/jss/tests/KeyWrapping.java
http://www.mozilla.org/projects/security/pki/jss/javadoc/org/mozilla/jss/pkcs12/PFX.html


Rather than attempting to do this with JSS why not just
use the NSS tool pk12util?

hope this helps,

glen

> Thank for hints
>
> _______________________________________________
> dev-tech-crypto mailing list
> dev-tec...@lists.mozilla.org
> https://lists.mozilla.org/listinfo/dev-tech-crypto
>

0 new messages