.NET web.config加密:“无法打开RSA密钥容器”

时间:2016-08-27 01:15:26

标签: .net aspnet-regiis.exe

这涉及到.NET应用程序的交互使用,以及加密app.config的一部分。

命令:aspnet_regiis -pdf“testSection”“C:\ temp”
错误:

Microsoft (R) ASP.NET RegIIS version 4.0.30319.0
Administration utility to install and uninstall ASP.NET on the local machine.
Copyright (C) Microsoft Corporation.  All rights reserved.
Decrypting configuration section...
Failed to decrypt using provider 'TestKeys'. Error message from the provider:
The RSA key container could not be opened. (C:\temp\web.config line 68)

The RSA key container could not be opened.
Failed!

我从原始系统导入了加密工具包,没有错误:

aspnet_regiis -pi "TestKeys" "C:\Testthing.xml"

我尝试过添加权限,例如

aspnet_regiis -pa "TestKeys" "test2\administrator"
aspnet_regiis -pa "TestKeys" "administrators"
aspnet_regiis -pa "TestKeys" "users"

没有任何帮助。

我以管理员身份以交互方式登录,并在Win2012-R2上以同一用户的身份以交互方式导入密钥和测试解密。

我希望能够列出目前的加密套件,但似乎不可能?

我的下一步是什么?

(在原始系统上,我可以整天加密和解密)

0 个答案:

没有答案