Hi Paulo , 
The arrayIndexOutOfBOunds was solve by changing the value of the out[]
variable to sg.length.


byte sg[] = pk7.getEncodedPKCS7(hash, cal);
byte out[] = new byte[sg.length];

Now I've got this 

Exception in thread "main" java.lang.IllegalArgumentException: The key
/Contents is too big. Is 115882, reserved 9474

The problems is at this level : 

exc.put(PdfName.CONTENTS, new Integer(0x2502));

If I Crank up the value of the integer as 115882, everything compile and run
.. but the result pdf's signature just dont work.

Adobe Reader tell me that : SigDict /Contents have illegal data.

Im searching a little before replying but now im screwed, the exemple should
work ?

-- 
View this message in context: 
http://www.nabble.com/Embeded-CRL-not-recognize-by-Adobe-tp25650913p25667271.html
Sent from the iText - General mailing list archive at Nabble.com.


------------------------------------------------------------------------------
Come build with us! The BlackBerry® Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9-12, 2009. Register now!
http://p.sf.net/sfu/devconf
_______________________________________________
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/

Reply via email to