Raffaele,
Raffaele wrote
> When i say that the result are 2 signature, it mean that when i open the
> pdf file with Acrobat X, in the sign panel, i see 2 sign.
Actually I would have expected you to see one document signature and one
document time stamp on that panel, not two signatures. Look at the icons,
they are different! And there also is some text line hinting at the fact
that the second item actually is a time stamp.
Unfortunately the Adobe Reader (in German) calls the time stamp item a
"Zeitstempelsignatur" ('time stamp signature') or even a "Signatur"
('signature') which technically may be acceptable (as RFC 3161 time stamps
are close cousins to CMS signature containers) but legally is a no-go
(during some product certification that has been hammered into us).
> I would have the timestamp attribute for the sign.
>
> The code that you've indicated i think that isn't for me because as you
> can see from the code, i haven't an OCSP.
That's why I suggested looking there for inspiration, not for something to
copy. ;)
> Using the code [...] with ocsp null, i have a "NullReference Exception"
> to: sgn.Update(sh, 0, sh.Length);
>
> Any suggestion?
As already mentioned in another thread, I don't use the PdfPKCS7 class
myself. Therefore, I don't know how to tweak it into working for your
scenarioe. Maybe you even would be better off if you looked at the sample
http://itextpdf.sourceforge.net/howtosign.html#signextitextsharp2
instead for guidance as it directly uses BouncyCastle (which I don't use
either; but I consider the code of this example easier to bend to do one's
bidding). Here also, though, you have to change the SignMsg() code to match
your use case.
Regards, Michael
--
View this message in context:
http://itext-general.2136553.n4.nabble.com/Insert-TimeStamping-with-external-digest-tp4344945p4347451.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
[email protected]
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