Re: WebClient and private keys

From: Michel Gallant \(MVP\) (neutron@istar.ca)
Date: 04/04/03


From: "Michel Gallant \(MVP\)" <neutron@istar.ca>
Date: Thu, 3 Apr 2003 17:00:48 -0500


If you mean "use" your private RSA key, you don't have to
move ("import") it at all. Use it from its current location.
You can use an existing capi (say RSA) keypair for use with .net
classes by simply specifying the keycontainer name associated with
the keys you wish to use in the CspParameters:
See Faq # 8 here:

http://www.microsoft.com/downloads/details.aspx?FamilyId=BF253CFD-1EFC-4FC5-BA7E-6A6F21403495&displaylang=en

How do you know what the your keycontainer name is?
You can use a variety of tools such as this utility:
    http://pages.istar.ca/~neutron/KeyContainerTool

or run the MS tool signcode.exe and navigate through the
panels. One shows all the keypairs and their container names.

 - Michel Gallant
   MVP Security
   JavaScience Consulting
   http://pages.istar.ca/~neutron

"Lanre Amos" <lanre@molan.com> wrote in message
news:O4oE#ni#CHA.2820@TK2MSFTNGP11.phx.gbl...
> Several questions have been asked on this topic but I don't see that it has
> been answered anywhere.
>
> How do you import the private key into the .NET classes that accept Client
> Certificates?
>
> Thanks,
> Lanre.
>
>
>
>