Hi Mikel,

I am close to solve the problem,

I got ti to work this way:


sap.setExternalDigest(null, new byte[20], null);
> sig.setExternalDigest(null, hash, null);

But this is "An example with an external hash in Windows Certificate Mode"

I want to do it "An example with an external hash and signature in Windows
Certificate Mode", but it doesn't work, I can not figure out why, yet.

in the example is:


sap.setExternalDigest(new byte[128], new byte[20], "RSA");
> sig.setExternalDigest(sign.sign(), hash, "RSA");

But this way leaks the sessions in the memory.
What is wrong?
Thank you

--
View this message in context: 
http://itext-general.2136553.n4.nabble.com/SunPKC11-Exception-when-signing-PDF-tp4340293p4354114.html
Sent from the iText - General mailing list archive at Nabble.com.

------------------------------------------------------------------------------
Try before you buy = See our experts in action!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-dev2
_______________________________________________
iText-questions mailing list
[email protected]
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

Reply via email to