chorpeac,

chorpeac wrote:
> I need to be able to sign on the client (since no private key is on the
> server), and then pass the bytes to the server (where iTextSharp resides)
> to apply the signature. 
> 
> Can this be done? 
> 
> I checked this out 
> http://itextpdf.sourceforge.net/howtosign.html#signextstd
> http://itextpdf.sourceforge.net/howtosign.html#signextstd  but it needs
> the private key...

Maybe the example found 
http://itext-general.2136553.n4.nabble.com/signing-pdf-with-external-signature-tt2166211.html#a2166216
here  is what you need. The explicitly coded sections and the  hashing of
pdfSigApp.getRangeStream() would be executed on the server while the
creation of a PKCS#7 signature container would be executed on the client.
All you have to add is some communication sending the hash from server to
client and sending the signature back from client to server. And beware, you
have to use the very PdfStamper you started the procedure with (or at least
its output) into which to insert your signature container.

It has been written using iText 2.x, though, so some minor necessary changes
are to be expected.

Regards,   Michael.

PS: The list archives allow you to search such posts quite comfortably...
-- 
View this message in context: 
http://itext-general.2136553.n4.nabble.com/Digital-Signature-Externally-Signed-tp2220099p2220801.html
Sent from the iText - General mailing list archive at Nabble.com.

------------------------------------------------------------------------------

_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions

Buy the iText book: http://www.itextpdf.com/book/
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/

Reply via email to