Hi all,
I am developing a part of a DMS. While coding pdf signature verification
using iText, I found a signature type not yet handled. I am referring to
signatures with sha256WithRSAEncryption algorithm.

This is the first part of my code:

PdfReader reader = new PdfReader(pdfDoc);
AcroFields af = reader.getAcroFields();
ArrayList names = af.getSignatureNames();
/*
 * verifica della firma del PDF
 */
if (names.size() > 0) {
        KeyStore kall = PdfPKCS7.loadCacertsKeyStore();
        for (int k = 0; k < names.size(); ++k) {
                String sigName = (String)names.get(k);
                if (af.signatureCoversWholeDocument(sigName)) {
                        PdfPKCS7 pk = af.verifySignature(sigName);

and it currently throws an exception at the last line. The exeption is
ExceptionConverter: java.security.NoSuchAlgorithmException
2.16.840.1.101.3.4.2.1 with 2.16.840.1.101.3.4.2.1 Signature not
available.

I browsed the archive of this list and found that this problem has
already been reported (13 Jul 2007), but it is not clear if and when it
has been solved.

I am having this error using iText 2.1.2u, but I also quickly tried
2.1.5 without luck.

Is there anyone working on this?

Bye,
Giuseppe


------------------------------------------------------------------------------
Register Now & Save for Velocity, the Web Performance & Operations 
Conference from O'Reilly Media. Velocity features a full day of 
expert-led, hands-on workshops and two days of sessions from industry 
leaders in dedicated Performance & Operations tracks. Use code vel09scf 
and Save an extra 15% before 5/3. http://p.sf.net/sfu/velocityconf
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions

Buy the iText book: http://www.1t3xt.com/docs/book.php
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