Decrypting Config Files
Each config file may be slightly different, so first determine which file you are performing this task on, and follow the instructions below.
- Step 1: Log into the machine where you intend on encrypting the files
- Step 2: Open a command prompt as Administrator
- Step 3: Change directories by pasting the following code into your command prompt, and hit enter:
CD C:\Windows\Microsoft.NET\Framework64\v4.0.30319Depending on which server you are actioning this on, choose the appropriate section below:
Option #1: Primary Passwordstate website
- Step 1: Stop the Passwordstate Service
- Step 2: To decrypt the connectionStrings section, execute this line of code:
aspnet_regiis.exe -pdf "connectionStrings" "c:\inetpub\passwordstate"- Step 3: To decrypt the appSettings section, execute this line of code:
aspnet_regiis.exe -pdf "appSettings" "c:\inetpub\passwordstate"- Step 4: Start the Passwordstate Service
Option #2: High Availability Passwordstate website
- Step 1: Stop the Passwordstate Service
- Step 2: To decrypt the connectionStrings section, execute this line of code:
aspnet_regiis.exe -pdf "connectionStrings" "c:\inetpub\passwordstate"- Step 3: To decrypt the appSettings section, execute this line of code:
aspnet_regiis.exe -pdf "appSettings" "c:\inetpub\passwordstate"- Step 4: Start the Passwordstate Service
Option #3: Password Reset Portal
- Step 1: Stop the Passwordstate Reset Portal Service
- Step 2: To decrypt the appSettings section, execute this line of code:
aspnet_regiis.exe -pdf "appSettings" "c:\inetpub\passwordstateresetportal"- Step 3: Start the Passwordstate Reset Portal Service
Option #4: AppServer Module
- Step 1: Stop the Passwordstate App Sever Service
- Step 2: To decrypt the connectionStrings section, execute this line of code:
aspnet_regiis.exe -pdf "connectionStrings" "c:\inetpub\passwordstateappserver"- Step 3: To decrypt the appSettings section, execute this line of code:
aspnet_regiis.exe -pdf "appSettings" "c:\inetpub\passwordstateappserver"- Step 4: Start the Passwordstate App Sever Service
Option #5: Remote Site Locations Agents
- Step 1: Stop the Passwordstate Agent Service
- Step 2: Rename the file PasswordstateAgent.exe.config to web.config
- Step 3: To decrypt the appSettings section, execute this line of code:
aspnet_regiis.exe -pdf "appSettings" "C:\Program Files (x86)\Passwordstate Agent"- Step 4: Rename the web.config file back to PasswordstateAgent.exe.config
- Step 5: Start the Passwordstate Agent Service
Option #6: Self Destruct Website (Push/Pull)
- Step 1: To decrypt the appSettings section, execute this line of code:
aspnet_regiis.exe -pdf "appSettings" "C:\inetpub\PasswordstateSelfDestruct"- Step 2: On your core Passwordstate webserver, restart the Passwordstate Windows Service