How to sign PDF using Alladin eToken?



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



Relevant Pages

  • Re: How to sign PDF using Alladin eToken?
    ... I'm new with digital signatures and PDF. ... automatically generated as a result of client users' actions. ... The document is then passed over the net to the webservice and the ...
    (comp.text.pdf)
  • Re: WSE352 Size of the record exceed its limit
    ... The webservice is a WSE service component soap client. ... you're developing an .net webservice which uses WSE ...
    (microsoft.public.dotnet.framework.webservices)
  • RE: Error on SOAP Call on only one machine: Could not find default endpoint element that references
    ... "Service Reference" is a proxy class used for consuming WCF service. ... Though WCF client can also consume standard XML webservice, ... Microsoft MSDN Online Support Lead ...
    (microsoft.public.dotnet.languages.vb)
  • Re: Webservice problem (after iisreset)
    ... I was speaking about whatever means you're suing the make the call from the client. ... If it already waits one minute for the failure then it sounds like the timeout is already high enough. ... So use wsdl.exe to generate a .NET proxy to your webservice to see if that style of client has the same problems or not. ... If it does, then it sounds like something on the server, if it does not then it's likley your HTC framework. ...
    (microsoft.public.dotnet.framework.aspnet.webservices)
  • Re: How does the client of a webservice figure out a complex type
    ... attribute with a hint for the client side proxy this is a DataSet. ... >if the wsdl does not contain any reference, ... >> As for how webservice client figure out a complex type, ...
    (microsoft.public.dotnet.framework.webservices)