Search code examples
asp.netsecurityweb-config

encrypting web.config in web farm


I want to encrypt the connectionstrings in my web.config. And my application will be deployed in web farm.

I tried reading some blogs about this, but got confused.

Can somebody tell me a link which they have really tried and got succeded.


Solution

  • We use the RSA Protected Configuration provider. That page isn't light reading, but it's got what you need.

    I recommend the command like so (example from the article):

    aspnet_regiis.exe -pef "connectionStrings" C:\Projects\MachineRSA