Op 23/08/2013 20:00, Benedikt Kristinsson schreef:
>
> Dear List,
>
> I am using iTextSharp to create a PDF file on a webserver and have a
> client sign it. After reading the Digital Signatures whitepaper[0] from
> iText, I managed to do this. However, I am having trouble embedding the
> Timestamp response into the signature. I modelled my approach after the
> PreSign and PostSign java code in the whitepaper.

I don't have much time to answer (catching a flight), but I can tell you 
that the example in the white paper is somewhat outdated. However, if 
you look at the download page of the examples, you can find an example 
that will replace the PreSign and PostSign code:

http://sourceforge.net/p/itext/code/5969/tree/tutorial/signatures/src/main/java/signatures/chapter4/C4_09_DeferredSigning.java

The idea is to prepare the document for signing by creating an invalid 
signature consisting of <0000...00> first in the method emptySignature() 
and then afterwards replace the <0000..00> by a correct signature in the 
method createSignature().

Hope this helps.

Please don't double post on this list as well as on StackOverflow.


------------------------------------------------------------------------------
Introducing Performance Central, a new site from SourceForge and 
AppDynamics. Performance Central is your source for news, insights, 
analysis and resources for efficient Application Performance Management. 
Visit us today!
http://pubads.g.doubleclick.net/gampad/clk?id=48897511&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

Reply via email to