How to sign PDF using Alladin eToken?
- From: nano2k <adrian.rotaru@xxxxxxxxxxx>
- Date: Tue, 19 Aug 2008 09:30:38 -0700 (PDT)
Hi
I'm new with digital signatures and PDF.
I have developed an application based on .NET 2.0 that consists of a
webservice and a client application.
On the server side, using iTextSharp library, PDF files are
automatically generated as a result of client users' actions.
All ok.
The complicated part follows.
The documents must be digitally signed by both the client and the
server applications.
Each user that will work with the client application has an eToken
(Alladin) that should be used to sign the document.
The document is then passed over the net to the webservice and the
webservice has to apply another digital signature to the document.
The deadlock follows.
Using iTextSharp to sign the document I figured out that the only
solution is to use a PFX file and a password. But there is no way to
extract a functional PFX file out from the token.
I even tried the Chilkat library to generate the PFX file using the
following code:
Chilkat.CreateCS ccs = new Chilkat.CreateCS();
Chilkat.CertStore certStore = ccs.OpenCurrentUserStore();
Chilkat.Cert cert = certStore.FindCertForEmail("myemail@xxxxxxxxxx");
cert.ExportToPfxFile(@"c:\mypfx.pfx", "123456", false);
The code runs smoothly and the PFX file is generated but when I try to
use it, no alias is found. The code I'm using is attached and it
crashes in Cert.processCert() method at line:
this.akp = pk12.GetKey(alias).Key;
because the alias is null.
Maybe I'm missing something, I don't know, but I've already spent
several hours to figure it out.
Thanks for any idea.
.
- Follow-Ups:
- Re: How to sign PDF using Alladin eToken?
- From: Paulo Soares
- Re: How to sign PDF using Alladin eToken?
- Prev by Date: Re: Soft mask moves unexpectedly (Reader 8.1.2)
- Next by Date: Re: How to sign PDF using Alladin eToken?
- Previous by thread: Soft mask moves unexpectedly (Reader 8.1.2)
- Next by thread: Re: How to sign PDF using Alladin eToken?
- Index(es):
Relevant Pages
|