Hi,

sounds like an interesting problem !
We are running a verification service ( http://sig-check.eu/ ) using iText, but 
the crypto-part is done by the iaik crypto provider. 

Could you please send your strange document ? 

Greetings

Andreas

----- Original Message ----
From: 021336 <[EMAIL PROTECTED]>
To: [email protected]
Sent: Friday, July 11, 2008 12:06:21 AM
Subject: Re: [iText-questions] Error when verifying signature


The code works fine when I go back to iText 1.5 (pre iText 2.0) and don't use
the Bouncy Castle libraries, but once I move to 2.0 or greater with the
latest Bouncy Castle libraries it fails.  I'm trying to download older
versions of Bouncy Castle to see if they will work with iText 2.0 and up but
their ftp site isn't letting me get to previous releases.

Anyone know of another site for getting older versions of Bouncy Castle or
changes I need to make to get the code to work with the latest versions
Bouncy Castle and iText?


021336 wrote:
> 
> Using the standard code below:
> 
>             PdfReader mReader = new PdfReader(aUnsignedFileName);
>             AcroFields mForm = mReader.getAcroFields();
>             ArrayList mSignatures = mForm.getSignatureNames();
>             String mName;
>             for (Iterator i = mSignatures.iterator(); i.hasNext();)
>             {
>                 mName = (String)i.next();
>                 System.out.println(mName);
>                 PdfPKCS7 pk = mForm.verifySignature(mName);
> 
> I am getting a Bouncy Castle error when executing "verifySignature"
> 
> java.lang.NoSuchMethodError: void
> org.bouncycastle.asn1.ASN1InputStream.<init>(java.io.InputStream, int)
> 
>     at
> org.bouncycastle.jce.provider.X509CertParser.readDERCertificate(Unknown
> Source)
> 
>     at org.bouncycastle.jce.provider.X509CertParser.engineRead(Unknown
> Source)
> 
>     at org.bouncycastle.jce.provider.X509CertParser.engineReadAll(Unknown
> Source)
> 
>     at com.lowagie.text.pdf.PdfPKCS7.<init>(Unknown Source)
> 
>     at com.lowagie.text.pdf.AcroFields.verifySignature(Unknown Source)
> 
> Anyone have any suggestions?
> 
> I am using Java 1.4, iText 2.1.2, and BouncyCastle libraries 1.39
> 
> I appreciate any assistance.
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Error-when-verifying-signature-tp18391044p18392879.html
Sent from the iText - General mailing list archive at Nabble.com.


-------------------------------------------------------------------------
Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW!
Studies have shown that voting for your favorite open source project,
along with a healthy diet, reduces your potential for chronic lameness
and boredom. Vote Now at http://www.sourceforge.net/community/cca08
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions

Do you like iText?
Buy the iText book: http://www.1t3xt.com/docs/book.php
Or leave a tip: https://tipit.to/itexttipjar


-------------------------------------------------------------------------
Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW!
Studies have shown that voting for your favorite open source project,
along with a healthy diet, reduces your potential for chronic lameness
and boredom. Vote Now at http://www.sourceforge.net/community/cca08
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions

Do you like iText?
Buy the iText book: http://www.1t3xt.com/docs/book.php
Or leave a tip: https://tipit.to/itexttipjar

Reply via email to