No I don't use dictionary "M". I read in PDF reference that this element is optional and Acrobat should take date of signing from PKCS#7 binary object. I'm creating PKCS#7 signature with BouncyCastle library. My time stamp is also generated in this library and then inserted into PKCS#7 unauthenticated attributes.
I tried connecting different TSA servers but with same result.
I also extracted PKCS#7 object from pdf which shows timestamp properly and compared it with my PKCS#7 (with asn1parser) . It looks almost the same (the same objects are present there).
I'll prepare my sample code to be easier to understand and send you.

Aleksandras S napisał(a):
Hi Tomek,
Can you show a code place where you add a timestamp?
Do you include in your signature dictionary "M" with time of signing?
On 19/05/06, *Tomek Maćkowski* <[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>> wrote:

    Hi


    I have a problem with timestamp of digital signature. I create this
    signature as 'adbe.pkcs7.detached ' and everything works fine. Now
    I want
    to add a timestamp to the signature (by adding ASN.1
    'id-smime-aa-timeStampToken' atribute to PKCS7 signature as in RFC
    3161
    Appendix A). When i open this created pdf the signature is visible
    , it
    is verified, but acrobat reader does't show time of signature nor
    timestamp authority (on Data/Time tab of signature properties)
    only 'Not
    available' text is shown (it shows only info: siignature is
    timestamped
    but the timestamp could not be verified)

    When I open a sample document prepared by adobe which contains
    signature
    with timestampi can see signing date and timestamp authority.
    I think there is a problem of parsing the signature by security
    handler.


    Do you have any ideas or expierences with timestamped signaatures?


    -------------------------------------------------------
    Using Tomcat but need to do more? Need to support web services,
    security?
    Get stuff done quickly with pre-integrated technology to make your
    job easier
    Download IBM WebSphere Application Server v.1.0.1 based on Apache
    Geronimo
    http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
    <http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642>
    _______________________________________________
    iText-questions mailing list
    [email protected]
    <mailto:[email protected]>
    https://lists.sourceforge.net/lists/listinfo/itext-questions





-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions

Reply via email to