Hi, I`m trying to do it too.
I want to insert a certificate (a file *.cer selected in the machine) into the Permanent Certificates DB by the CryptoManager.importCertToPerm(...), but for it, i need to create an instance of org.mozilla.jss.crypto.X509Certificate from this selected file. is there a way to do it? somehow like the CertificateFactory from the Sun CertificateFactory cf = CertificateFactory.getInstance("X.509"); cert = (X509Certificate) cf.generateCertificate (new FileInputStream(new File("c:/teste.cer"))); "shinigami" <[EMAIL PROTECTED]> escreveu na mensagem news:[EMAIL PROTECTED] > Hi, > E want install a cert in a db. But my cert when i receive from outside is > a java.security.cert.X509Certificate, and the method importCertToPerm > can“t do it. I need to cast this cert to > org.mozilla.jss.crypto.X509Certificate. Or exist other way to do this?? > > > _______________________________________________ dev-tech-crypto mailing list dev-tech-crypto@lists.mozilla.org https://lists.mozilla.org/listinfo/dev-tech-crypto