Now it compiles but when I try to sign a pdf I get this error: Exception in thread "main" java.lang.NullPointerException at com.itextpdf.text.pdf.security.PrivateKeySignature.<init>(PrivateKeySignature.java:76) at SignWithCAcert.sign(SignWithCAcert.java:51) at SignWithCAcert.main(SignWithCAcert.java:68)
>51-ExternalSignature pks = new PrivateKeySignature(...... >68-app.sign(SRC, DEST, chain, pk, DigestAlgorithms.SHA256, ......... The certificate has been issued to me by an Italian Regional CA and is valid. It works fine with older iText-5.0.6.jar and signing method (PdfSignatureAppearance.WINCER_SIGNED) Thanks. -- View this message in context: http://itext-general.2136553.n4.nabble.com/SignWithCAcert-error-tp4658787p4658811.html Sent from the iText - General mailing list archive at Nabble.com. ------------------------------------------------------------------------------ See everything from the browser to the database with AppDynamics Get end-to-end visibility with application monitoring from AppDynamics Isolate bottlenecks and diagnose root cause in seconds. Start your free trial of AppDynamics Pro today! http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.clktrk _______________________________________________ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions iText(R) is a registered trademark of 1T3XT BVBA. 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