Documentation Center

Modifying encrypted data in the Access Management configuration file

Sensitive data stored in the appsettings.json file for Access Management is encrypted by default. Using the AppSettingsProtector tool, you can decrypt the file, modify the sensitive data, and then encrypt it again.

About this task

During installation process for Access Management, the installer encrypts all sensitive data that is stored in the appsettings.json file. To use the Access Management tool, you must be logged in as a properly authorized user.

After completing your modifications, use the same tool to encrypt it once again and keep the sensitive data properly protected.

Procedure

  1. Sign in to the machine on which you installed the Access Management service as one of the following users:
    • If your machine runs Windows and you installed the service using the installService.ps1 script, sign in as the Windows Local System account.
    • If your machine runs Windows and you started the service as a Windows process using the start.ps1 script, sign in as the user who originally ran the script.
  2. From a command prompt, go to the bin\ subfolder of the folder in which the Access Management service was installed.
  3. Decrypt the configuration file by running the following .NET Core command:
    dotnet AppSettingsProtector.dll unprotect -f appsettings.json
  4. Open the file for editing, and modify it as needed.
  5. Re-encrypt the file by running the following .NET Core command:
    dotnet AppSettingsProtector.dll protect -f appsettings.json