Op 19/07/2012 4:11, Eric Chow schreef:
Hello,
I am trying to migrate my old digital signature program to the new
iText-5.3.0, but it failed.
I tried to test the digital signature in the iText-5.3.0 tutorial but
it not worked with Smartcard. It gots some exception:
java.security.NoSuchAlgorithmException: no such algorithm: SHA1
for provider SunPKCS11-GD
This is NOT an iText issue.
The error message explains why: you are trying to create a message
digest (SHA1, an algorithm that is no longer recommended as you could
read in the white paper) using the security provider SunPKCS11-GD which
doesn't support the algorithm of your choice.
The solution is: use another security provider to create the hash.
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
iText-questions mailing list
iText-questions@lists.sourceforge.net
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