I'm using fromRaw method :

org.mozilla.jss.pkcs11.PK11PubKey key =
                                
org.mozilla.jss.pkcs11.PK11PubKey.fromRaw(org.mozilla.jss.crypto.PrivateKey.Type.RSA,pkey.getEncoded());
sinfo.verify(messageDigest,ContentInfo.DATA,zubkey);

At execution of sinfo.verify , I get this error :
assertion failure :0, at secasn1d.c:1217

but this is a fatal error which crashes TomCat , and there's no way to
catch and trace any java Exception... Maybe there's an option
somewhere in TomCat to do so, but i don't know how...




> >which is strange as it is a java.security.publickey ... 
> >And when I try to convert it as org.mozilla.jss.pkcs11.PK11PubKey,
> >
> What are you calling to make this conversion? Have you tried 
> PK11PubKey.fromRaw?
> 
> >
> >then I get another error at verification time , which crashes Tomcat :
> >
> >"assertion failure :0, at secasn1d.c:1217
> >
> Neat. Can you give me a stack trace, both C and Java? If so I might be 
> able to debug it.

Reply via email to