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
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
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
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
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
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
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