User-1674945895 posted
All,
I'm using RSA Protected Configuration provider and the aspnet_regiis.exe tool to encrypt section of my web.config file.
I can successfully encrypt 'appSettings' using C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727>aspnet_regiis.exe -pe "appSettings" -app "/AppName"
however the similar command when used with 'identity' C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727>aspnet_regiis.exe -pe "identity" -app "/AppNAme" gives me the below message ""Encrypting configuration section...
The configuration section 'identity' was not found.
Failed!""
My web.config identity section looks like this...
<identity impersonate="true" userName="domain\userAccount" password="whatever"/>
Trying to encrypt 'sessionState' fails also.
According to MS article 'How To: Encrypt Configuration Sections in ASP.NET 2.0 Using RSA' http://msdn.microsoft.com/en-us/library/ms998283.aspx, I should be able encrypt <
appSettings>, <
connectionStrings>, <
identity> and
<
sessionState>. I'd rather encrypt just the sections I need for performance overhead reasons.
Any ideas folks?