Encrypting Configuration Sections
This topic describes how to encrypt configuration sections of the customer.config
file (Automic\Release.Manager\WebUI\customer.config).
To Encrypt Configuration Sections
- Create a copy of the web.config file (
c:\Automic\ARA\WEBUI\web.config
) and name it web1.config. - Copy the content of the
customer.config
file (except the first line - header). - In the
web.config
file replace the<Customer configSource="customer.config" />
line with the contents of your clipboard. - Remove the following line:
<section name="Customer" type="Ventum.Bond2.CustomerConfigurationHandler, Ventum.Bond2.Services.Impl"/>
- Save your changes and close the file.
- To encrypt a specific section in your
web.config
you can use the aspnet_regiis utility and run the following command:If you have a .Net App:
C:\Windows\Microsoft.NET\Framework64\v4.0.30319>aspnet_regiis.exe -pe "Customer" -site "myARASite" -app "/myARAInstance"
(alias that is configured in IIS)
If you do not have a .Net App but only a Website:
C:\Windows\Microsoft.NET\Framework64\v4.0.30319>aspnet_regiis.exe -pe "Customer" -site "myARASite" -app "/"
If you have neither a .Net App nor a Website:
- Navigate to the folder containing the
web.config
file. - In the command line run:
c:\Windows\Microsoft.NET\Framework64\v4.0.30319\aspnet_regiis.exe -pef "Customer" .
Notes:
- This command has to be executed on the server where IIS is located. You may decrypt the section again with the -pdf switch.
- By default the system writes a sanitized version of the customer configuration as header of the primary log file. This sanitized version does not contain any password. The logging of
customer.config
to the header of the log file can be disabled by adding the following line to the AppSettings section of theweb.config
file:<add name="LogCustomerConfig" value="false" />
- Navigate to the folder containing the
- Copy the whole Customer section in the encrypted
web.config
and replace the old content in thecustomer.config
file (except the header) with the copied content. - Delete the
web.config
and rename theweb1.config
back toweb.config
.
See also: