Hi yazeed,
the problem you initially mentioned is a 'BER encoding problem'. That's
what I do get when I open your signed PDF in the Acrobat reader. And
this is not a surprise as the included certificates look wierd. I cannot
see the certificate in the reader. That's no surprise as the
certificates are the only part of these type of signature that's BER
encoded.
Regarding hash and certificate extraction: Bruno's book will help! Or
you may try google ...
Greetings,
Andreas
> Hi Andreas,
> Could you please let me know what is the issue in the certificate, the reader
> can extract the certificate and it shows the certificate entries
> from the code, i am reading the certificate from the smart card as byte array
> then i insert it in Certificate object and the java object accept the byte
> array
> otherwise, could you please let me know how can i extract the hash of the
> original document and the certificate from the signed PDF in order to verify
> the signature from the code
>
> your help is highly appreciated
> Regards,
> Date: Fri, 12 Oct 2012 19:52:10 +0200
> From: kue...@trustable.de
> To: itext-questions@lists.sourceforge.net
> Subject: Re: [iText-questions] Signing PDF using Smart Card
>
>
>
>
>
>
> Hi yazeed,
>
>
>
> 'thumb up' for providing a problem PDF with your request!
>
>
>
> I can't explain the problem with the code you provided but the
> included certificates in the PDF look very strange ... no wonder
> why the reader complains about broken encoding!
>
>
>
> Greetings,
>
>
>
> Andreas
>
>
>
> Hi,
> i followed the example in iText book and i read most of the emails in the
> mailing list which are related to signing PDF file using smart card but still
> i am facing a problem
> i am using setExternalDigest method
> always the acrobat reader give me the below error
> Error during signature verification.
> Error encountered while validating:
> Error encountered while BER decoding:
> Kindly find the attached PDF and the source code
>
> Your help is highly appreciated
> Regards,
>
>
>
>
>
>
> ------------------------------------------------------------------------------
> Don't let slow site performance ruin your business. Deploy New Relic APM
> Deploy New Relic app performance management and know exactly
> what is happening inside your Ruby, Python, PHP, Java, and .NET app
> Try New Relic at no cost today and get our sweet Data Nerd shirt too!
> http://p.sf.net/sfu/newrelic-dev2dev
>
>
>
>
>
> _______________________________________________
> 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
>
>
>
>
>
> --
> Andreas Kühne
> phone: +49 177 293 24 97
> mailto: kue...@trustable.de
>
> Trustable Ltd. Niederlassung Deutschland Ströverstr. 18 - 59427 Unna
> Amtsgericht Hamm HRB 5868
>
> Directors Andreas Kühne, Heiko Veit
>
> Company UK Company No: 5218868 Registered in England and Wales
>
>
>
> ------------------------------------------------------------------------------
> Don't let slow site performance ruin your business. Deploy New Relic APM
> Deploy New Relic app performance management and know exactly
> what is happening inside your Ruby, Python, PHP, Java, and .NET app
> Try New Relic at no cost today and get our sweet Data Nerd shirt too!
> http://p.sf.net/sfu/newrelic-dev2dev
> _______________________________________________
> 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
>
>
> ------------------------------------------------------------------------------
> Don't let slow site performance ruin your business. Deploy New Relic APM
> Deploy New Relic app performance management and know exactly
> what is happening inside your Ruby, Python, PHP, Java, and .NET app
> Try New Relic at no cost today and get our sweet Data Nerd shirt too!
> http://p.sf.net/sfu/newrelic-dev2dev
>
>
> _______________________________________________
> 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
--
Andreas Kühne
phone: +49 177 293 24 97
mailto: kue...@trustable.de
Trustable Ltd. Niederlassung Deutschland Ströverstr. 18 - 59427 Unna
Amtsgericht Hamm HRB 5868
Directors Andreas Kühne, Heiko Veit
Company UK Company No: 5218868 Registered in England and Wales
------------------------------------------------------------------------------
Don't let slow site performance ruin your business. Deploy New Relic APM
Deploy New Relic app performance management and know exactly
what is happening inside your Ruby, Python, PHP, Java, and .NET app
Try New Relic at no cost today and get our sweet Data Nerd shirt too!
http://p.sf.net/sfu/newrelic-dev2dev
_______________________________________________
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