Couldn't remember that I ever disagreed with Leonard, but now it's the time !
Of course it's possible what your describing :
- Build a semi-signed PDF with room for the signature
- Get the hash value
- Store the half-baked PDF on disk
- Sign the hash and create a PKCS7-Signature, somtimes later, somewhere
- Insert the signature into the spare bytes in the PDF
- Ready
Due to wierd legal requirements we had to take this multi-step approach and it
works !
Greetings
Andreas
________________________________
From: Mathieu Fortin <[email protected]>
To: [email protected]
Sent: Mon, January 25, 2010 10:56:47 PM
Subject: Re: [iText-questions] Merge of detached signature
Merge of detached signature
Ok that's what I thought, thx.
Notarius Inc.
700-1080 Côte du Beaver Hall
Montréal, Québec, H2Z 1S8
Avis de confidentialité / Confidentiality Notice
Notarius Inc. - Certifié ISO 9001 : 2000
Centre de certification du Québec - Certifié ISO 27001 : 2005
________________________________
From: Leonard Rosenthol
To: Post all your questions about iText here
Sent: Mon Jan 25 16:50:07 2010
Subject: Re: [iText-questions] Merge of detached signature
No, it is not possible due to how PDF signatures work.
From:Mathieu Fortin
[mailto:[email protected]]
Sent: Monday, January 25, 2010 10:45 PM
To: [email protected]
Subject: [iText-questions] Merge of detached signature
Hi
Is it possible for a client to get the content to be signed from a server app
(which uses itext) , sign that hash, and send that pkcs7 to the server app
which would "merge" it in the original pdf?
It works when we do a single step, ie as shown in the detached signatures
example, but it doesn't work in the scenario stated above.
Mathieu
Notarius Inc.
700-1080 Côte du Beaver Hall
Montréal, Québec, H2Z 1S8
Avis de confidentialité / Confidentiality Notice
Notarius Inc. - Certifié ISO 9001 : 2000
Centre de certification du Québec - Certifié ISO 27001 : 2005
------------------------------------------------------------------------------
The Planet: dedicated and managed hosting, cloud storage, colocation
Stay online with enterprise data centers and the best network in the business
Choose flexible plans and management services without long-term contracts
Personal 24x7 support from experience hosting pros just a phone call away.
http://p.sf.net/sfu/theplanet-com
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions
Buy the iText book: http://www.1t3xt.com/docs/book.php
Check the site with examples before you ask questions:
http://www.1t3xt.info/examples/
You can also search the keywords list: http://1t3xt.info/tutorials/keywords/