Anthony Rumsey wrote:

> How do I take my org.mozilla.jss.crypto.X509Certificate and convert it to
> org.mozilla.jss.pkix.cert.Certificate since that seems to be the format
> required by org.mozilla.jss.pkcs7.SignedData?


import java.io.ByteArrayInputStream;
[...]

Certificate cert = Certificate.getTemplate().decode(
        new ByteArrayInputStream(x509Cert.getEncoded()) );


Reply via email to