Re: [iText-questions] Sign and PDF with SmartCard and web browser only

2012-02-08 Thread madmax
Hi Michael and Andreas, I tried several things: 1) removed the date stamps from both the itext and CAPICOM 2) Also changed the bDetached parameter value to "false" as suggested by Michael in the javascript 3) I also noticed that I could avoid getting the digest from the PDF and just created

Re: [iText-questions] Sign and PDF with SmartCard and web browser only

2012-02-08 Thread madmax
.2136553.n4.nabble.com/file/n4369352/original-sample-1.pdf original-sample-1.pdf http://itext-general.2136553.n4.nabble.com/file/n4369352/madmax-sig.jpg madmax-sig.jpg http://itext-general.2136553.n4.nabble.com/file/n4369352/X509ServletExternalSignature.java X509ServletExternalSignature.java http

Re: [iText-questions] Sign and PDF with SmartCard and web browser only

2012-02-07 Thread madmax
Hi Michael I looked a little dipper to what you were saying and begun looking closer to my “verify” method and it dawned on me that I had seen similar code from an example of detached signature and using BouncyCastle (source: http://itextpdf.sourceforge.net/howtosign.html#signextdiccms http://i

Re: [iText-questions] Sign and PDF with SmartCard and web browser only

2012-02-07 Thread madmax
Hi Michael Thanks again for your suggestion. As I parse through your response you say: mkl wrote > > Thus, you do not need to (actually you must not) embed it in a signature > container using the PdfPKCS7 utility class but instead embed it into the > PDF > directly! > So are you saying that this

Re: [iText-questions] Sign and PDF with SmartCard and web browser only

2012-02-02 Thread madmax
Hi Michael and Andreas, I have been trying to figure out what the issue could be based on your comments. 1) In the JSP I did the following The alert pops up the cert that was selected then I went into the details tab and looked at the key usage it shows Digital Signature, Non-Repudiation (c0)

Re: [iText-questions] Sign and PDF with SmartCard and web browser only

2012-02-02 Thread madmax
Hi Michael and Andreas, I have been trying to figure out what the issue could be based on your comments. 1) In the JSP I did the following The alert pops up the cert that was selected then I went into the details tab and looked at the key usage it shows Digital Signature, Non-Repudiation (c0)

Re: [iText-questions] Sign and PDF with SmartCard and web browser only

2012-01-31 Thread madmax
mkl wrote > > Max, > > madmax wrote >> The code fragments that I posted actually puts a signature on the PDF but >> now I have a problem when I open the PDF and try to verify the signature >> I get this error from adobe >> >> *Error during signa

Re: [iText-questions] Sign and PDF with SmartCard and web browser only

2012-01-30 Thread madmax
Michael, I am no longer invoking that line of code at the time I was just trying to kind of debug the problem and understand what might be going on.. The code fragments that I posted actually put a signature on the PDF but now I have a problem when I open the PDF and try to verify the signature

Re: [iText-questions] Sign and PDF with SmartCard and web browser only

2012-01-30 Thread madmax
Hey Keith here are the c# examples I found that I was refering about in the post http://itextpdf.sourceforge.net/howtosign.html#signextitextsharp1 max -- View this message in context: http://itext-general.2136553.n4.nabble.com/Sign-and-PDF-with-SmartCard-and-web-browser-only-tp4319344p434339

Re: [iText-questions] Sign and PDF with SmartCard and web browser only

2012-01-30 Thread madmax
pearance.setCrypto(null, certChain, null, PdfSignatureAppearance.WINCER_SIGNED); appearance.setReason("Digitally Signed"); appearance.setLocation("Some Place"); appearance.setContact("madmax"); appearance.setAcro6Layers(true); appea

Re: [iText-questions] Sign and PDF with SmartCard and web browser only

2012-01-24 Thread madmax
So is tinkered with it a little more and I was able to somewhat sign the PDF. Bu things are never as simple as we would like them to be. I can see the signature on a separate page but when I try to validate it acrobat it returns the following error: Error during signature verification. Error en

[iText-questions] Sign and PDF with SmartCard and web browser only

2012-01-22 Thread madmax
I am in need for some guidance. I have a scenario where I am required to sign PDFs using a smartcard. The catch is that it needs to be done on a server (Jboss) and the only interaction allowed is via a web browser (Microsoft IE). I found several threads but I am unable to put it all together for a