My idea is create a application capable to validate signature online with OCSP, without upload a certificate. I give the example of Adobe because it can be done there, without upload any certificate.
Sergio -----Original Message----- From: Andreas Kuehne [mailto:[email protected]] Sent: quinta-feira, 28 de Janeiro de 2010 11:53 To: Post all your questions about iText here Subject: Re: [iText-questions] Pdf signature validation Hi Sérgi, you have to make destinction between root certificates and OCSP responses. Of course you can get certificates rom somewhere ( usually the signing certificates include a hint where to find the issuing certificate ). Anyway you have to make the active decision 'I trust this root certificate' ! Adobe with the reader has made their decision and deliver a set of root certificates. So the trusted roots are there, you don't need to do an online request. Maybe you could export the relevant root certificate from the Reader. On the other hand the online certificate status is used to check for the validity of the signing certificate. You don't recieve a certificate by using OCSP but the information about a recent revocation of the certificate. As things are a bit complicated to setup and to keep updated we started a service for online verification ( sig-check.eu ). We focused on german legally binding certificates but if you give it a try, we can add the missing root certificates. Just rop a line what's your root cert. Greetings Andreas ----- Original Message ---- From: Sérgio Onofre <[email protected]> To: Post all your questions about iText here <[email protected]> Sent: Thu, January 28, 2010 12:19:14 PM Subject: Re: [iText-questions] Pdf signature validation Maybe not, is possible to check online the certificates, as Adobe do? Onofre -----Original Message----- From: 1T3XT info [mailto:[email protected]] Sent: quinta-feira, 28 de Janeiro de 2010 09:35 To: Post all your questions about iText here Subject: Re: [iText-questions] Pdf signature validation Sérgio Onofre wrote: > Here is my code: > PdfReader reader = *new* PdfReader(/signedPDF/); > AcroFields af = reader.getAcroFields(); > PdfPKCS7 pk = af.verifySignature(name); > java.security.cert.Certificate[] pkc = > pk.getCertificates(); > KeyStore ks = PdfPKCS7./loadCacertsKeyStore/(); So you're loading the cacerts key store from the lib directory of your Java home directory. But does this keystore contain the same root certificate as the Trusted Certificates in Adobe? > Object fails[] = > PdfPKCS7./verifyCertificates/(pkc, ks, *null*, cal); > *if* (fails == *null*) { > result += “Certification ok” + "\n"; > } ---------------------------------------------------------------------------- -- The Planet: dedicated and managed hosting, cloud storage, colocation Stay online with enterprise data centers and the best network in the business Choose flexible plans and management services without long-term contracts Personal 24x7 support from experience hosting pros just a phone call away. http://p.sf.net/sfu/theplanet-com _______________________________________________ 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/ ------------------------------------------------------------------------------ The Planet: dedicated and managed hosting, cloud storage, colocation Stay online with enterprise data centers and the best network in the business Choose flexible plans and management services without long-term contracts Personal 24x7 support from experience hosting pros just a phone call away. http://p.sf.net/sfu/theplanet-com _______________________________________________ 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/ ------------------------------------------------------------------------------ The Planet: dedicated and managed hosting, cloud storage, colocation Stay online with enterprise data centers and the best network in the business Choose flexible plans and management services without long-term contracts Personal 24x7 support from experience hosting pros just a phone call away. http://p.sf.net/sfu/theplanet-com _______________________________________________ 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/ ------------------------------------------------------------------------------ The Planet: dedicated and managed hosting, cloud storage, colocation Stay online with enterprise data centers and the best network in the business Choose flexible plans and management services without long-term contracts Personal 24x7 support from experience hosting pros just a phone call away. http://p.sf.net/sfu/theplanet-com _______________________________________________ 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/
