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 { byte[]

Linker error from tstclnt

2017-05-25 Thread Ernie Kovak
Hello - I'm trying to build NSS 3.30.2 on Windows 10, following the instructions at https://developer.mozilla.org/en-US/docs/Mozilla/Projects/NSS/Building. I get the following linker error: kernel32.lib(KERNEL32.dll) : error LNK2005: ReadFile already defined in tstclnt.obj WIN954.0_x86_64_64_O