WebConfig 加解密,未能使用提供程序“RsaProtectedConfigurationProvider”进行解密。提供程序返回错误消息为: 打不开 RSA 密钥容器。
问题:未添加用于访问 RSA 密钥容器
命令:aspnet_regiis -pa "NetFrameworkConfigurationKey" "NT AUTHORITY\NETWORK SERVICE"
注意事项:
XP下:aspnet_regiis -pa "NetFrameworkConfigurationKey" "aspnet"
加密:aspnet_regiis -pe "appSettings" -app "/应用程序名" -prov "RSAProtectedConfigurationProvider"
解密:aspnet_regiis -pd "appSettings" -app "/应用程序名"
注意:如加密连接字符串,“appSettings”更改为:“connectionStrings”
评论