2016-01-13 66 views
0

有沒有辦法從Azure移動服務中禁用弱密碼? 該服務正在標準層中運行。 發佈服務器的端口是443如何從Azure移動服務中禁用弱密碼?

我嘗試下面的代碼

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

refered但要Requested registry access is not allowed例外

它是在同一鏈路提到添加executionContext="elevated" in the startup 我跑不知道在哪裏添加此行或如何將網頁角色應用到移動服務..

回答

相關問題