Encrypting settings within the web.config file

Tips and Tricks - Applies to Infiniti v8.0 or later
 

Often organizations standards require that no plain text passwords exist in the Infiniti web.config file(s). You can use the ASP.NET IIS Registration Tool (Aspnet_regiis.exe) to encrypt or decrypt sections of a Web configuration file. ASP.NET will automatically decrypt encrypted configuration elements when the Web.config file is processed.

 

Encrypting the connection string

Note: The Aspnet_regiis.exe tool is located in the c:\windows\Microsoft.NET\Frameworkv4.0.30319 folder.

 

1. Run the following command using Command Prompt (cmd.exe) to encrypt the Intelledox Connection String.

aspnet_regiis -pe "connectionStrings" -app "/intelledox/produce"

 

    The -app parameter will be specific to your installation. Check IIS to find where Infiniti has been installed.
 

 

Encrypting Actions

Note: The Aspnet_regiis.exe tool is located in the c:\windows\Microsoft.NET\Frameworkv4.0.30319 folder.

 

1. Temporarily comment out the <configSections> node

2. Run the following command using Command Prompt (cmd.exe) to encrypt the <action> node.

aspnet_regiis -pe "action" -app "/intelledox/produce"

 
    The -app parameter will be specific to your installation. Check IIS to find where Infiniti has been installed.

 

3. Un-comment out the <configSections> node

 

Decryption

Decryption can be achieved using the aspnet_regiis --pd option

 

Related Articles

Setting Produce and Manage URLs

 

Keywords

Installation IIS