Look at the example
http://itextpdf.sourceforge.net/howtosign.html#signextdic. You need to
have the correct filter and subfilter depending on your PKCS#7.

Paulo
 

> -----Original Message-----
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] On 
> Behalf Of Christoph Weber
> Sent: Monday, September 04, 2006 3:54 PM
> To: [email protected]
> Subject: [iText-questions] insert PKCS#7 Signature into pdf
> 
> Hi All!
> 
> What I want to do is adding a PKCS#7 signature to a pdf 
> document. This 
> signature is generated by a PKCS#11 Library, so I can work with an 
> external card reader. It is not possible to get the private 
> key/certificate out of the card.
> 
> What I understood from now I have to
> 
> 1. open a pdf document in itext
> 2. calculate a hash from this file
> 3. Generate a PKCS#7 signature with the PKCS#11 Library
> 4. Add this signature to the pdf
> 
> I already read the tutorial about adding external signatures under 
> "http://itextpdf.sourceforge.net/howtosign.html";, but that 
> doesn't help. 
> They always work with keys and certs which I can't access.
> 
> So please help me. Java Code would be the best, except for point 3 of 
> course.
> 
> Thanx in advance,
> Chris
> 
> --------------------------------------------------------------
> -----------
> 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
> 


Aviso Legal:
Esta mensagem é destinada exclusivamente ao destinatário. Pode conter 
informação confidencial ou legalmente protegida. A incorrecta transmissão desta 
mensagem não significa a perca de confidencialidade. Se esta mensagem for 
recebida por engano, por favor envie-a de volta para o remetente e apague-a do 
seu sistema de imediato. É proibido a qualquer pessoa que não o destinatário de 
usar, revelar ou distribuir qualquer parte desta mensagem. 

Disclaimer:
This message is destined exclusively to the intended receiver. It may contain 
confidential or legally protected information. The incorrect transmission of 
this message does not mean the loss of its confidentiality. If this message is 
received by mistake, please send it back to the sender and delete it from your 
system immediately. It is forbidden to any person who is not the intended 
receiver to use, distribute or copy any part of this message.


-------------------------------------------------------------------------
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