> -----Original Message-----
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] On 
> Behalf Of Moore, Jane
> Sent: Thursday, March 01, 2007 4:57 PM
> To: Post all your questions about iText here
> Subject: [iText-questions] timestamping/certifying signature problems
> 
> Hi,
> 
>  
> 
> When I sign a .pdf with the following code and open it in 
> Adobe 7.0, I have the following problems:
> 
>  
> 
> 1) Signature date/time are from the clock on the Signer's 
> computer (so the timestamping functionality isn't being applied)
>

Timestamping requires a secure and signed time source and it's out of
the scope of iText to provide that. You apply an external signature with
anything you want inside.
 
> 2) I can't "Show Certificate" 
> 

Maybe it is not there. 

> 3) I get "Error during signature verification.  Unknown error 
> Support Information: CDSHandler-358"  
> 

Maybe it's the certificate.


Maybe you are providing certificates that need a custom handler in
Acrobat. Maybe...


Paulo

>  
> 
> #2 and #3 are directly related to when I certify the signature.
> 
>  
> 
>             rsasig = Signature.getInstance("SHA1withRSA");
> 
>             PdfReader reader = new PdfReader(tempbytes);
> 
>             FileOutputStream fout = new FileOutputStream(signedPDF);
> 
>             PdfStamper stp = 
> PdfStamper.createSignature(reader, fout, '\0');
> 
>             ks = KeyStore.getInstance("Luna");
> 
>             ks.load(null, null);
> 
> PrivateKey = PrivateKey.LocateKeyByAlias("private signing key");
> 
> certChain=ks.getCertificateChain(PrivateKey.GetAlias());
> 
>  
> 
> sap.setCrypto((java.security.PrivateKey)PrivateKey, 
> certChain, null, PdfSignatureAppearance.WINCER_SIGNED );
> 
>             sap.setVisibleSignature(new 
> com.lowagie.text.Rectangle(75, 75, 200, 200), 1, null);
> 
>             sap.setReason("Invoice Signature");
> 
>             sap.setLocation("Nike Inc.");
> 
>             sap.setCertified(true);
> 
>             stp.close();
> 
>  
> 
> Any help would be appreciated.  Thanks!
> 
> 


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.


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions
Buy the iText book: http://itext.ugent.be/itext-in-action/

Reply via email to