Re: How do I convert org.mozilla.jss.pkix.cert to org.mozilla.jss.crypto.X509Certificate?

2017-05-25 Thread Elio Maldonado Batiz
Hi Ernie, Not sure I fully understand the question. Without additional context is hard to give a good answer. Now, in one of the JSS tests I see code quite similar to the snippet you pasted. https://hg.mozilla.org/projects/jss/file/tip/org/ mozilla/jss/tests/ListCerts.java#l63 Hopefully studying

Re: How do I convert org.mozilla.jss.pkix.cert to org.mozilla.jss.crypto.X509Certificate?

2017-05-25 Thread Ernie Kovak
Try this: /** Convert an NSS certificate to a Java X509Certificate */ protected X509Certificate convertNssCertificate(org.mozilla.jss.crypto.X509Certificate cert) throws CertificateException { InputStream in = null; try {

How do I convert org.mozilla.jss.pkix.cert to org.mozilla.jss.crypto.X509Certificate?

2015-06-20 Thread Opa114
Just a simple question: How do I convert org.mozilla.jss.pkix.cert to org.mozilla.jss.crypto.X509Certificate? I haveseen that there is a small notice on official JSS FAQ which says i should use: Cryptomanager.importCertPackage() But this method did not work. I got NoSuchItemException, because