0
我开发了一个简单的ASP.NET网站,使用Chilkatdotnet2(版本9.0.8.0)生成用于加密的RSA公钥/私钥对。下面是示例代码Chilkat RSA加密在Windows7/IIS7中失败
bool success;
string UnlockChilkatRSA = "XXXXXXXXXXXXXX";
int RSAKeyLength = 1024;
Chilkat.Rsa rsa = new Chilkat.Rsa();
success = rsa.UnlockComponent(UnlockChilkatRSA);
if (!success)
{
lblmsg.Text = "RSA component unlock failed";
return;
}
success = rsa.GenerateKey(RSAKeyLength);
if (!success)
{
lblmsg.Text = rsa.LastErrorText;
return;
}
string publicKey = rsa.ExportPublicKey();
string privateKey = rsa.ExportPrivateKey();
这时候我主持我在Windows Server 2003(IIS6)网络运行良好,但是当我试图给其托管在Windows7的(IIS7),这行代码success = rsa.GenerateKey(RSAKeyLength);
does not工作和事业网络冻结。任何人都遇到同样的问题,任何反馈将不胜感激。
以我的经验,奇尔卡特技术支持是非常敏感解决它。也许你可以问他们NETWORK SERVICE有什么正确的控制权。 – 2010-09-10 21:46:20