hi

 if i use this http://itextpdf.sourceforge.net/howtosign.html #
signextitextsharp2 (Detached)

  I sign the document correctly but the hash algorithm is sha1. (not in
compliance with Italian regulations)

 Enclosed I send you the details of the certificate in which you would draw
attention to:
http://itext-general.2136553.n4.nabble.com/file/n4491763/DetailCertificate.jpg 

 Signature Algorithm: sha256RSA
 Thumbprint Algorithm: sha1

 Are you sure that the hash algorithm is set by my temporary certificate in
the store windows contained in the smart card?
 Obviously if I use such a program FileProtector I see in adobe a hash
sha256, so my certificate should have no problem to sign sha256, not by
chance that it is a limit itexsharp (c # version)?.

 Instead If i use this http://itextpdf.sourceforge.net/howtosign.html #
signextitextsharp2 (Hashed)
 how can I change these 2 lines of code to get a signature sha256?
  December PdfSignature = new PdfSignature (PdfName.ADOBE_PPKMS,
PdfName.ADBE_PKCS7_SHA1);
  
 HashAlgorithm SHA1CryptoServiceProvider sha = new ();

Thanks

--
View this message in context: 
http://itext-general.2136553.n4.nabble.com/Problem-to-sign-using-Sha256-tp4471288p4491763.html
Sent from the iText - General mailing list archive at Nabble.com.

------------------------------------------------------------------------------
This SF email is sponsosred by:
Try Windows Azure free for 90 days Click Here 
http://p.sf.net/sfu/sfd2d-msazure
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions

iText(R) is a registered trademark of 1T3XT BVBA.
Many questions posted to this list can (and will) be answered with a reference 
to the iText book: http://www.itextpdf.com/book/
Please check the keywords list before you ask for examples: 
http://itextpdf.com/themes/keywords.php

Reply via email to