One more point....

My certificate and private key shows the singature algorithm as SHA1withRSA
and the providew is also not BC. So, how i can instatiate the PdfPKCS7
object while signing the pdf. any updates needs to be done or extra steps
needs to be followd to create the correct instance of PdfPKCS7 classs while
sigining the pdf.  May be because of this my verification is failing.

Curently while signing the PDF i am using the followign line of code:

PdfPKCS7 sgn = new PdfPKCS7(privateKey, certChain, null, "SHA-1",
"HSMDevice JCA Provider name", true);
when i m passing the SHA1withRSa instead of SHA-1 its failing. So, please
let me know the right thing to be able to pass here as SHA1 with RSA.

thanks
Gurpreet Singh


On 10/8/07, Gurpreet Singh <[EMAIL PROTECTED]> wrote:
>
> Hi,
>
> Thanks for your help. Link is really helpful to know about the steps to
> verify. But i have to do the same steps using Java. Anyways, I will try this
> link also to verify the signed PDF.
>
> i m using luna device and what software i need to install on solaris box
> to run your shell script to verify the certified pdf.
>
> thanks
> Gurpreet Singh
>
>
>  On 10/8/07, antonio <[EMAIL PROTECTED]> wrote:
> >
> > Alle 21:10, lunedì 08 ottobre 2007, Gurpreet Singh ha scritto:
> > > Hi,
> > >
> > > I have certified the PDF and embedded the digital signature with
> > timestamp
> > > using iText and Bouncy Castle API's. Can anybody tells me that how to
> > > verify the PKCS#7 digital signature, certificate chain and timestamp
> > > present in the PDF?
> >
> > Hi Gurpreet,
> >
> > look here
> >
> > http://homes.esat.kuleuven.be/~decockd/wiki/bin/view.cgi/HowTos/SignatureVerification
> >
> > --
> > Antonio
> > http://www.blia.it
> >
> >
> > -------------------------------------------------------------------------
> > This SF.net email is sponsored by: Splunk Inc.
> > Still grepping through log files to find problems?  Stop.
> > Now Search log events and configuration files using AJAX and a browser.
> > Download your FREE copy of Splunk now >> http://get.splunk.com/
> > _______________________________________________
> > iText-questions mailing list
> > iText-questions@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/itext-questions
> > Buy the iText book: http://itext.ugent.be/itext-in-action/
> >
>
>
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions
Buy the iText book: http://itext.ugent.be/itext-in-action/

Reply via email to