Re: Digital Signature
From: Michel Gallant (neutron_at_istar.ca)
Date: 04/27/04
- Next message: Federico Babelis: "How to find an algorythm code"
- Previous message: Nikhil Garewal: "Digital Signature"
- In reply to: Nikhil Garewal: "Digital Signature"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Date: Tue, 27 Apr 2004 17:38:16 -0400
When you loaded the cert/key you generated with makecert it was placed
in a CSP "keycontainer".
If you know the name of that keycontainer, then you can use to to directly
instantiate an RSACryptoServiceProvider:
const int AT_KEYEXCHANGE = 1;
const int AT_SIGNATURE = 2;
CspParameters cp = new CspParameters();
cp.KeyContainerName = ContainerName;
cp.KeyNumber = AT_SIGNATURE; //default keytype gen'd by makecert;
RSACryptoServiceProvider rsa = new RSACryptoServiceProvider(cp);
and you are ready to sign with .NET classes.
You can find out what your keycontainers are several different ways.
Here's one way: http://www.jensign.com/JavaScience/dotnet/keypal
or, if you have MS JVM and like signed applets and CAPICOM:
http://www.jensign.com/JavaScience/KeyContainerTool
- Mitch
"Nikhil Garewal" <anonymous@discussions.microsoft.com> wrote in message
news:59CF4E23-B5FB-400E-91F0-83465432148D@microsoft.com...
> I have created a cert file using makecert.exe & have loaded it to the IIS server, I want to create
a digital signature of a userID using my private key. I plav to use the RSACryptoServiceProvider
Clas but how do I pass the private key to it instead of it creating a new one.
- Next message: Federico Babelis: "How to find an algorythm code"
- Previous message: Nikhil Garewal: "Digital Signature"
- In reply to: Nikhil Garewal: "Digital Signature"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|