Pedro,

P3d3r0s0 wrote:
> Hey, i think i understand, so according to what you are saying Michael,
> all i need to do now is(if i understood correctly):
> sig.setExternalDigest(signedHash, null, "RSA");
> when i have the digest/hash signed.
> this signedHash doesnt have those 3 bytes.
> 
> weird thing is... i was able to verify the signed digest, and i still get
> the invalid signature error.
> i think this means theres something wrong with the itext code.

Would you post the PDF generated that way?

Next week I'm in office again and can try and check the sample. I have to
admit, though, that I don't know /SubFilter/adbe.x509.rsa_sha1 signatures
very well.

The recommended /SubFilter to use is /adbe.pkcs7.detached anyway (cf. page
476 of ISO 32000-1:2008). Did you choose a different /SubFilter for a
specific reason?

Regards,   Michael.
-- 
View this message in context: 
http://itext-general.2136553.n4.nabble.com/Another-invalid-signature-thread-tp3003710p3008373.html
Sent from the iText - General mailing list archive at Nabble.com.

------------------------------------------------------------------------------
Nokia and AT&T present the 2010 Calling All Innovators-North America contest
Create new apps & games for the Nokia N8 for consumers in  U.S. and Canada
$10 million total in prizes - $4M cash, 500 devices, nearly $6M in marketing
Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store 
http://p.sf.net/sfu/nokia-dev2dev
_______________________________________________
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

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