Here's the status assuming that pinvoke on the crypto api is not used:
- .NET 2003 has no access to the windows store, you need wse1 but the
capabilities are minimal.
- .NET 2005 is better but you'll still need wse3 to be able to enumerate
the store and chose a certificate.
- The real problem is how to sign if the private key is not exportable
as in the case of smartcards.
- Using .NET 2005 and wse3 you let windows sign the hash and use
iTextSharp to place that signature in the PDF.
- I didn't have the time yet to make an example.
Paulo
> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On
> Behalf Of Fabrizio Accatino
> Sent: Friday, May 11, 2007 2:06 PM
> To: Post all your questions about iText here
> Subject: Re: [iText-questions] Signing a PDF with Certificate
> in WindowsStore (iTextSharp)
>
> Hi Paul,
>
> I think that it's not possible to use the NET Framework
> classes to sign a Pdf using iTextSahrp.
> There are some examples that use pfx files and Bouncycastle
> classes. But, as I know, Bouncycastle classes are not
> "compatible" with NET Framework classes (X509Certificate2, etc...).
>
> Paulo and Bruno: help me / us. I'm wrong ?
>
>
> Fabrizio
>
>
>
>
>
> On 5/11/07, Paul <[EMAIL PROTECTED]> wrote:
>
> Hi Fabrizio,
>
> Sorry for the vagueness. I know how to sign a pdf using
> a pfx. That bit is
> fairly straight forward, but I came unstook when
> looking for code to both obtain
> the certificate from the store and using that instead
> of a pfx. I don't really
> want to export the certificate as a pfx and go down
> that route (as is mentiond
> in other tutorials), but actually use the certificates
> in the store directly.
>
> Any help is apreciated.
>
> Best Regards,
> Paul.
>
>
>
>
>
Aviso Legal:
Esta mensagem é destinada exclusivamente ao destinatário. Pode conter
informação confidencial ou legalmente protegida. A incorrecta transmissão desta
mensagem não significa a perca de confidencialidade. Se esta mensagem for
recebida por engano, por favor envie-a de volta para o remetente e apague-a do
seu sistema de imediato. É proibido a qualquer pessoa que não o destinatário de
usar, revelar ou distribuir qualquer parte desta mensagem.
Disclaimer:
This message is destined exclusively to the intended receiver. It may contain
confidential or legally protected information. The incorrect transmission of
this message does not mean the loss of its confidentiality. If this message is
received by mistake, please send it back to the sender and delete it from your
system immediately. It is forbidden to any person who is not the intended
receiver to use, distribute or copy any part of this message.
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions
Buy the iText book: http://itext.ugent.be/itext-in-action/