unknown tag 28 encountered

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

unknown tag 28 encountered

sumit.bhrdwj
This post has NOT been accepted by the mailing list yet.
Hello,

We are using Bouncy Castle and ItextPdf to sign pdf documents from USB dongle. Our code is working fine on our dev machines, but when we are trying to execute the same code with same set of input PDFs and USB Dongle, we are seeing following error

ExceptionConverter: java.io.IOException: unknown tag 28 encountered
        at org.bouncycastle.asn1.ASN1InputStream.buildObject(Unknown Source)
        at org.bouncycastle.asn1.ASN1InputStream.readObject(Unknown Source)
        at com.itextpdf.text.pdf.security.PdfPKCS7.getAuthenticatedAttributeSet(
PdfPKCS7.java:1008)
        at com.itextpdf.text.pdf.security.PdfPKCS7.getAuthenticatedAttributeByte
s(PdfPKCS7.java:957)
        at com.itextpdf.text.pdf.security.MakeSignature.signDetached(MakeSignatu
re.java:151)


I tried looking for the error, but have not found any clues.

We are using JRE 7.25, 32 bit

Any help would be appreciated

Regards,
Sumit