[EMAIL PROTECTED] wrote: > 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. > > 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-tech-crypto@lists.mozilla.org > https://lists.mozilla.org/listinfo/dev-tech-crypto > _______________________________________________ dev-tech-crypto mailing list dev-tech-crypto@lists.mozilla.org https://lists.mozilla.org/listinfo/dev-tech-crypto