Hi Adam, the rason looks quite obvious to me : Your signature doesn't include any certificates. From the plain words of the PKCS7 this is a valid signature. In this case the certificate gets transported 'by other means'. But it's very unlikely that a PDF could be verified without any certificate included, usually the recipient doesn't have the udsed certificates installed.
I would recommend to check the settings of your signature generator. Maybe there is a switch for certificate inclusion, usually with the levels 'none, signer, all'. If you're still stuck, post the PDF to list .. Greetings Andreas ----- original Nachricht -------- Betreff: Re: [iText-questions] Acroform verifySignature() PdfPKCS7 error with SHA256 in iText 2.1.3 Gesendet: Di, 30. Nov 2010 Von: adam d'angelo<[email protected]> > I have updated the version of iText we are using to 5.0.5 and made the > required > package changes. When the PDF is being stamped within our application, we > get > the following error: > > 500 Servlet Exception > java.lang.NullPointerException > at com.itextpdf.text.pdf.PdfPKCS7.<init>(PdfPKCS7.java:577) > at com.itextpdf.text.pdf.PdfSigGenericPKCS.setSignInfo( > PdfSigGenericPKCS.java:95) > at com.itextpdf.text.pdf.PdfSignatureAppearance.preClose( > PdfSignatureAppearance.java:973) > at com.itextpdf.text.pdf.PdfSignatureAppearance.preClose( > PdfSignatureAppearance.java:897) > at com.itextpdf.text.pdf.PdfStamper.close(PdfStamper.java:192) > > I took a look at 5.0.5's source code for PdfPKCS7.java leading me to this > line > of code: > signCert = (X509Certificate)certChain[0]; > > Is there a configuration issue with the PDFStamper or > PdfSignatureAppearance, > or is this problem related to the actual certificate being used to sign the > > PDF? > > Thanks again. Your help is appreciated. > > Regards, > Adam > > > > ---------------------------------------------------------------------------- > -- > Increase Visibility of Your 3D Game App & Earn a Chance To Win $500! > Tap into the largest installed PC base & get more eyes on your game by > optimizing for Intel(R) Graphics Technology. Get started today with the > Intel(R) Software Partner Program. Five $500 cash prizes are up for grabs. > http://p.sf.net/sfu/intelisp-dev2dev > _______________________________________________ > iText-questions mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/itext-questions > > Many questions posted to this list can (and will) be answered with a > reference to the iText book: http://www.itextpdf.com/book/ > Please check the keywords list before you ask for examples: > http://itextpdf.com/themes/keywords.php > --- original Nachricht Ende ---- ------------------------------------------------------------------------------ Increase Visibility of Your 3D Game App & Earn a Chance To Win $500! Tap into the largest installed PC base & get more eyes on your game by optimizing for Intel(R) Graphics Technology. Get started today with the Intel(R) Software Partner Program. Five $500 cash prizes are up for grabs. http://p.sf.net/sfu/intelisp-dev2dev _______________________________________________ iText-questions mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/itext-questions Many questions posted to this list can (and will) be answered with a reference to the iText book: http://www.itextpdf.com/book/ Please check the keywords list before you ask for examples: http://itextpdf.com/themes/keywords.php
