Marcos, Marcos Fontana wrote > Hi, I'm implementing iText, but even if a verify a PDF that was signed by > a revoked certificate, in the Adobe Reader, the same document appears like > invalid, but in the code in, the return is Integrity Check is OK = true. > Is it right? > The code is just like in the paper example.
You mean Code sample 5.2: "Checking the integrity of a revision based on a digital signature" in section 5.1.2 "Checking the integrity of a revision" of the white paper http://itextpdf.com/book/digitalsignatures? That code merely checks whether the signature can be parsed and the hash value is correct. Or do you mean Code sample 5.5: "Verifying certificates" in section 5.3.2 "Verifying a signature against a key store" in the same paper? That code only checks whether a certificate chain rooted in a trusted certificate can be built. Or Code Sample 5.6: "Checking if a certificate was valid on a specific day"? No online check either. Or Code Sample 5.8: "Checking the validity of a certificate using OCSP"? In this case, an online check is executed. If it falsely returns "valid", please supply a sample document. Regards, Michael -- View this message in context: http://itext-general.2136553.n4.nabble.com/PdfPKCS7-verify-always-returning-true-tp4658072p4658074.html Sent from the iText - General mailing list archive at Nabble.com. ------------------------------------------------------------------------------ Precog is a next-generation analytics platform capable of advanced analytics on semi-structured data. The platform includes APIs for building apps and a phenomenal toolset for data science. Developers can use our toolset for easy data analysis & visualization. Get a free account! http://www2.precog.com/precogplatform/slashdotnewsletter _______________________________________________ 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