I am trying to encrypting appSettings in a external file using aspnet_regiis -pef. Does anyone how how to do this.
My main web config file :
external file ExternalAppSettings.config
I want to encrypt only appsetting in ExternalAppSettings.config how to do this ?
Bikesh SrivastavaPosted Sep 16, 2016, 3:22 AM
We do this all the time as we use external files for each of our environments.
First your
appSettingselement needs to look like this:Next, we call the encryption from the cmdline using:
where:
{0}is the name of your encryption provider specified in the web.config.{1}is the Id of your site in IISMidhun TpPosted Sep 16, 2016, 1:05 AM