This article will help you understand on how to encrypt the sensitive information provided in the web.config file of WFM portal Website in a DMZ server which may prevent us from unauthorized access.
If Workflow Manager needs to be accessed over the Internet, it is recommended to set up a portal Web server. Upon setting up, the user may need to provide some sensitive information mentioned below which is not encrypted.
<add key="RemoteServer" value="IP_Address" />
<add key="AMS_SystemUsername" value="User_Name" />
<add key="AMS_SystemPassword" value="Pasword” />
<add key="AMS_SystemDomain" value="Domain_Name" />
To encrypt those details kindly follow the below steps.
- Provide the relevant values for above keys in the web.config file, Save and Close it.
- Open command prompt and execute the below command to the path “C:\Windows\Microsoft.NET\Framework64\v4.0.30319”
Command to be executed: aspnet_regiis.exe -pef appSettings "C:\AdminStudioWebComponents_2020\portalroot"
Please note, the path mentioned in the above command is the default path to web.config file. Make sure to change it, if it is customized.
Refer the below screenshot for reference,
- If it is successful, verify the web.config file and you could notice that the information will be encrypted.
NOTE : In case if the information need to be changed, decrypt the information using the command,
aspnet_regiis.exe -pdf appSettings "C:\AdminStudioWebComponents_2020\portalroot"