Jammy, Bruno,

On 20/08/2012 4:37, Jammy Chen wrote:
> Can everybody help me how to change my code make the timestamp 
> functionality works?

1T3XT BVBA wrote
> I also think you're using PKCS#1 which is allowed in ISO-32000-1, but
> forbidden in PAdES (but that doesn't explain your problem).

But (at least partially) it does explain it!

Not the fact that the PKCS#1 is forbidden in PAdES but the fact that it is
used at all.

In ISO 32000-1 style signatures time stamps are included as unsigned
attributes in the PKCS#7 signature container (12.8.3.3.1: "Time stamp
information as an unsigned attribute (PDF 1.6): The timestamp token shall
conform to RFC 3161 and shall be computed and embedded into the PKCS#7
object as described in Appendix A of RFC 3161.") In case of the naked PKCS#1
container used by Jammy, there is no PKCS#7 signature container to add
timestamps to.

According to the code in comments Jammy seems to have tried to embed a
PKCS#7 container instead of the naked PKCS#1 signature object, but he
doesn't seem to have switched away from PdfSignatureAppearance.SELF_SIGNED.

Jammy, look at the samples for the iText book; TimestampOCSP.java
(https://itext.svn.sourceforge.net/svnroot/itext/book/src/part3/chapter12/TimestampOCSP.java)
would be a starting point for you.

Regards,   Michael



--
View this message in context: 
http://itext-general.2136553.n4.nabble.com/Questions-about-using-timestamp-functionality-tp4655929p4655937.html
Sent from the iText - General mailing list archive at Nabble.com.

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
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

Reply via email to