Re: [iText-questions] iText SHA-256 signing

2011-12-07 Thread andyrobb18
Sorry to bring up another question on this thread, but after setting up the code to read the smart card using the sun provider, I get the following error message returned from Bouncy Castle: java.security.InvalidKeyException: Supplied key (sun.security.pkcs11.P11Key$P11PrivateKey) is not a RSAPriv

Re: [iText-questions] iText SHA-256 signing

2011-12-06 Thread andyrobb18
Thanks for all the feedback - much appreciated. Using the Bouncy Castle example I now have SHA-256 signing working. I'm posting the code I used below for reference. Now to get it working with a smart card... Cheers Andy Security.addProvider(new BouncyCastleProvider()); KeyStore

Re: [iText-questions] iText SHA-256 signing

2011-12-06 Thread andyrobb18
Sorry, thats the wrong snippet of code Ive attached in my haste - apologies. Ill attach the correct extract when Im back at my pc tomorrow. The pdf file attached was generated using the code example "An example with an external signature in Self Sign Mode". Based on your suggestion below,  Ill ha

Re: [iText-questions] iText SHA-256 signing

2011-12-05 Thread andyrobb18
Hi Michael Thanks for the reply - great to have confirmation that it should work. I've picked up the following code from the page indicated; I've used this example as I'm aware you can't sign SHA256 with WINCER. At the moment it signs the document, but the signature as invalid when I check it. See

Re: [iText-questions] iText SHA-256 signing

2011-12-04 Thread andyrobb18
Is nobody able to answer these questions? I'd really appreciate some help here to at least confirm what's possible Thanks Andy -- View this message in context: http://itext-general.2136553.n4.nabble.com/iText-SHA-256-signing-tp4125948p4159156.html Sent from the iText - General mailing list a

[iText-questions] iText SHA-256 signing

2011-11-30 Thread andyrobb18
I currently use iText for SHA1 signing - however I have a new requirement to implement SHA-256 hash signing. I've looked on the forum and I can see that others have tried, but I haven't found any reference to any actually being able to implement this. I'm also aware that there have been some rece

[iText-questions] java.lang.NoClassDefFoundError: org/bouncycastle/asn1/ASN1OctetString

2011-04-05 Thread andyrobb18
This may be a stupid post, but as a relative java newbie I'm really stuck here. I'm developing integration for pdf forms into our companies reporting architecture, and I'm trying to test using iText to see if it will meet our requirement. I've created the following java program: import java.io.F