intoolswetrust / jsignpdf

PDF signing software written in Java. It supports visible signatures, timestamping, certificate verification and many other cool features
https://intoolswetrust.github.io/jsignpdf/
Other
310 stars 120 forks source link

Exception in Verifier #29

Closed oh-mycode closed 3 years ago

oh-mycode commented 3 years ago

Hi! May someone help with my problem? I get the error when I launch Verifier with a document which has 3 signatures.

java.lang.ClassCastException: class org.bouncycastle.asn1.BERTaggedObject cannot be cast to class org.bouncycastle.asn1.DERTaggedObject (org.bouncycastle.asn1.BERTaggedObject and org.bouncycastle.asn1.DERTaggedObject are in unnamed module of loader 'app')
    at com.lowagie.text.pdf.PdfPKCS7.<init>(Unknown Source)
    at com.lowagie.text.pdf.AcroFields.verifySignature(Unknown Source)
    at com.lowagie.text.pdf.AcroFields.verifySignature(Unknown Source)
    at net.sf.jsignpdf.verify.VerifierLogic.verify(VerifierLogic.java:201)
    at net.sf.jsignpdf.verify.VerifierLogic.verify(VerifierLogic.java:147)
    at net.sf.jsignpdf.verify.Verifier.main(Verifier.java:164)
kwart commented 3 years ago

Closing this issue with "won't fix" resolution. The verifier was removed in the 2.0-SNAPSHOT