【发布时间】:2016-01-13 07:16:18
【问题描述】:
有什么方法可以禁用 Azure 移动服务中的弱密码? 该服务在标准层中运行。 发布服务器端口为 443。
我尝试运行以下代码
string[] subKeys = new string[]
{
"RC4 40/128",
"RC4 56/128",
"RC4 64/128",
"RC4 128/128",
};
RegistryKey parentKey = Registry.LocalMachine.OpenSubKey(@"SYSTEM\CurrentControlSet\Control\SecurityProviders\SCHANNEL\Ciphers", true);
foreach (string keyName in subKeys)
{
var newKey = parentKey.CreateSubKey(keyName);
newKey.SetValue("Enabled", 0);
newKey.Close();
}
parentKey.Close();
引用自How to disable RC4 cipher on Azure Web Roles
但是得到Requested registry access is not allowed 异常
在同一链接中提到添加executionContext="elevated" in the startup
我不确定在哪里添加此行或如何将网络角色应用于移动服务..
【问题讨论】:
标签: iis encryption registry azure-mobile-services rc4-cipher