Re: [iText-questions] Need Help! Self Signed external siganture example fails

2009-09-04 Thread mkl
Manfred, mamueller wrote: > i have found the error: > > sap.setExternalDigest(new byte[2048], null, "RSA"); > > must be changed to: > > sap.setExternalDigest(new byte[128], null, "RSA"); > > I dont know why but i works. Ok, when trying to make the expected and actual signature size match,

Re: [iText-questions] Need Help! Self Signed external siganture example fails

2009-09-04 Thread mkl
Hi Manfred, mamueller wrote: > - How can i inspect the signed pdf? With a text editor or a special tool? For a first look I use a viewer that has a hex mode of some kind (e.g. PSPad or the viewer of TotalCommander, but there are many alternatives). This is what I used for your file. For a more

Re: [iText-questions] Need Help! Self Signed external siganture example fails

2009-09-04 Thread mamueller
Hello, i have found the error: sap.setExternalDigest(new byte[2048], null, "RSA"); must be changed to: sap.setExternalDigest(new byte[128], null, "RSA"); I dont know why but i works. Thanks to all Manfred mamueller wrote: > > Hello Michael, > > im a newbie to pdf sign with itext. > I

Re: [iText-questions] Need Help! Self Signed external siganture example fails

2009-09-04 Thread mamueller
Hello Michael, im a newbie to pdf sign with itext. Im a little bit confused. - How can i inspect the signed pdf? With a text editor or a special tool? - How can you see that the /Contents only span the bytes from position 837 through 1100? - Where do you get the information from that the /ByteR

Re: [iText-questions] Need Help! Self Signed external siganture example fails

2009-09-04 Thread mkl
Hello Manfred, mamueller wrote: > original.pdf, signed.pdf and .keystore attached. > Password for key and keystore: my_password If you inspect the signed.pdf, you see that the /Contents only span the bytes from position 837 through 1100 while according to the /ByteRange array they should end at

Re: [iText-questions] Need Help! Self Signed external siganture example fails

2009-09-04 Thread mamueller
ginal Message > From: mamueller > To: itext-questions@lists.sourceforge.net > Sent: Friday, September 4, 2009 9:46:23 AM > Subject: Re: [iText-questions] Need Help! Self Signed external siganture > example fails > > > > > mamueller wrot

Re: [iText-questions] Need Help! Self Signed external siganture example fails

2009-09-04 Thread Andreas Kuehne
Hi Manfrrad, can you make the PDF doc available ? Greetings Andreas - Original Message From: mamueller To: itext-questions@lists.sourceforge.net Sent: Friday, September 4, 2009 9:46:23 AM Subject: Re: [iText-questions] Need Help! Self Signed external siganture example fails

Re: [iText-questions] Need Help! Self Signed external siganture example fails

2009-09-04 Thread mamueller
] >>> Sent: Thursday, September 03, 2009 12:32 PM >>> To: itext-questions@lists.sourceforge.net >>> Subject: [iText-questions] Need Help! Self Signed external >>> siganture example fails >>> >>> Hello, >>> >>> i have tried to run

Re: [iText-questions] Need Help! Self Signed external siganture example fails

2009-09-04 Thread mamueller
] >>> Sent: Thursday, September 03, 2009 12:32 PM >>> To: itext-questions@lists.sourceforge.net >>> Subject: [iText-questions] Need Help! Self Signed external >>> siganture example fails >>> >>> Hello, >>> >>> i have tried to run

Re: [iText-questions] Need Help! Self Signed external siganture example fails

2009-09-03 Thread mamueller
ficate is RSA 1024 bit. > > Paulo > >> -Original Message- >> From: Manfred Müller [mailto:mamuel...@directbox.com] >> Sent: Thursday, September 03, 2009 12:32 PM >> To: itext-questions@lists.sourceforge.net >> Subject: [iText-questions] Need Hel

Re: [iText-questions] Need Help! Self Signed external siganture example fails

2009-09-03 Thread Paulo Soares
Check that your certificate is RSA 1024 bit. Paulo > -Original Message- > From: Manfred Müller [mailto:mamuel...@directbox.com] > Sent: Thursday, September 03, 2009 12:32 PM > To: itext-questions@lists.sourceforge.net > Subject: [iText-questions] Need Help! Self

[iText-questions] Need Help! Self Signed external siganture example fails

2009-09-03 Thread Manfred Müller
Hello, i have tried to run the example with an external signature in Self Sign Mode, like described on: (http://itextpdf.sourceforge.net/howtosign.html#signextstd) see code below at the end of the mail. The sign process works without errors, but if i open the signed PDF document with Acrobat r