Author: vihrao1 | Posted on: 8/25/2010 11:17:38 AM | Views : 422

1) I want to create a rsa key in c# and export the container. I am having difficulty. I create container like this:
CspParameters cspParams = new CspParameters(); cspParams.KeyContainerName = "XML_ENC_RSA_KEY";CspParameters cspParams = new CspParameters(); cspParams.KeyContainerName = "XML_ENC_RSA_KEY";
The msdn example says I can export the container with this syntax:
aspnet_regiis -pa "XML_ENC_RSA_KEY" "NT AUTHORITY\NETWORK SERVICE". This does not work on my XP Host PC. I belive this is applicable for Windows 2003 Server.
So what is the correct syntax for exporting rsa key container from XP host?
2) To get aspnet_regiis.exe path I did something like this:
string winPath = Environment.GetEnvironmentVariable("windir"); string fullPath = winPath + @"\Microsoft.NET\Framework\v2.0.50727" + @&qu ...

Go to the complete details ...