Hey, I've been programmatically signing PDF documents, which is working ok as of today. So I attempted to get the signing info from a document and verifying it following Chapter 16 page 530 in the iText book. I used a .be eID sample card from Certipost. The signing example in the book works well btw.
At first I got a NoClassDefException on org.bouncycastle.jce.provider.X509CertParser. So I added the library: "bcprov-jdk1X.jar" library. But now it's even worse. I get the following exception, without stacktrace. After debugging I pinned it down to the line AcrofieldsInstance.verifySignature(name); com.lowagie.text.ExceptionConverter : class "org.bouncycastle.jce.provider.X509CertificateObject"'s signer information does not match signer information of other classes in the same package The exception gets thrown here: KeyStore ks = PdfPKCS7.loadCacertsKeyStore(); this.naam=name; this.signatureCoversWholeDocument=fields.signatureCoversWholeDocument(naam); this.verifiedSig=fields.verifySignature(name); --------> signDatum = verifiedSig.getSignDate(); <---------------- certificaten = verifiedSig.getCertificates(); Also.. :) In line 1 of this code snippet, am I supposed to load the .be rootcertificate? Not that I've used it as of yet but I probably will when I get this first problem sorted out. Thanks in advance :) Cheers, Thomas -- View this message in context: http://www.nabble.com/AcroFieldsInstance.verifySignature%28name%29-Exception-tp19780679p19780679.html Sent from the iText - General mailing list archive at Nabble.com. ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions Buy the iText book: http://www.1t3xt.com/docs/book.php