Hi Michael, Andreas As always thank you for your input.
I am attaching the updated sample code with the Java class and JSP. As well as the original PDF and signed version of the document with my PIV card. In the signPdf method the sample Java code has reduced the code to: byte[] data= Base64.decodeBase64(digest.trim().getBytes()); I will continue to try different things on my side but if you know of how to solve the date issue please let me know. Best regards, Max http://itext-general.2136553.n4.nabble.com/file/n4369352/signed-sample-1.pdf signed-sample-1.pdf http://itext-general.2136553.n4.nabble.com/file/n4369352/original-sample-1.pdf original-sample-1.pdf http://itext-general.2136553.n4.nabble.com/file/n4369352/madmax-sig.jpg madmax-sig.jpg http://itext-general.2136553.n4.nabble.com/file/n4369352/X509ServletExternalSignature.java X509ServletExternalSignature.java http://itext-general.2136553.n4.nabble.com/file/n4369352/x509ExternalSig.jsp x509ExternalSig.jsp -- View this message in context: http://itext-general.2136553.n4.nabble.com/Sign-and-PDF-with-SmartCard-and-web-browser-only-tp4319344p4369352.html Sent from the iText - General mailing list archive at Nabble.com. ------------------------------------------------------------------------------ Keep Your Developer Skills Current with LearnDevNow! The most comprehensive online learning library for Microsoft developers is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, Metro Style Apps, more. Free future releases when you subscribe now! http://p.sf.net/sfu/learndevnow-d2d _______________________________________________ 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