我创建了一个功能请求: http: //feedback.azure.com/forums/34192--general-feedback/suggestions/9025255-certificate-based-settings-encryption
这与远程桌面插件的功能相似(但更惯用,恕我直言)。远程桌面添加:
<ConfigurationSettings>
<Setting name="Microsoft.WindowsAzure.Plugins.RemoteAccess.Enabled" value="true" />
<Setting name="Microsoft.WindowsAzure.Plugins.RemoteAccess.AccountUsername" value="<name-of-user-account>" />
<Setting name="Microsoft.WindowsAzure.Plugins.RemoteAccess.AccountEncryptedPassword" value="<base-64-encrypted-password>" />
<Setting name="Microsoft.WindowsAzure.Plugins.RemoteAccess.AccountExpiration" value="<certificate-expiration>" />
<Setting name="Microsoft.WindowsAzure.Plugins.RemoteForwarder.Enabled" value="true" />
</ConfigurationSettings>
<Certificates>
<Certificate name="Microsoft.WindowsAzure.Plugins.RemoteAccess.PasswordEncryption" thumbprint="<certificate-thumbprint>" thumbprintAlgorithm="sha1" />
</Certificates>
RDP 插件“知道”Microsoft.WindowsAzure.Plugins.RemoteAccess.AccountEncryptedPassword
值被加密将使用证书Microsoft.WindowsAzure.Plugins.RemoteAccess.PasswordEncryption
对其进行解密。
我的功能请求是添加名为nodethumbprint
的属性。<Setting />
调用CloudCloudConfigurationManager.GetSetting()
将使用指定的证书无缝解密该值。
那将是多么美妙……