This section explains how to encrypt settings contained within the appsettings.json file present in the HCMIS-BE installation directory, using the Hyland Application Settings Utility (HASU).
The Hyland Application Settings Utility (HASU) is a command-line utility for writing and encrypting specified sections of JSON configuration files.
Note: For detailed instructions on how to use the Hyland
Application Settings Utility, refer to the Hyland API Server
documentation.
To encrypt theappsettings.json file using the Hyland Application Settings Utility:
- Launch a command prompt with elevated privileges.
- Navigate to the folder on your computer where the Hyland Application Settings Utility application is located.
- Enter the complete name of the utility (Hyland.Application.Settings.Utility.exe) after .\, followed by a space and write "-a".
- To specify the location of the custom appsettings.json file, enter .\Hyland.Application.Settings.Utility.exe write-a "[path]", where [path] is the path to the folder where the custom appsettings.json file is located.
- To specify the file name, enter .\Hyland.Application.Settings.Utility.exe write-a "C:\Hyland\"--file [appsettings.json]
- To specify the section name in the appsettings.json file, enter the section name.
- To specify the property name or key element in the appsettings.json file, enter .\Hyland.Application.Settings.Utility.exe write-a "C:\Hyland\" --file appsettings.json -p [configuration name]:[property name] where [property name] is the key element that you want to encrypt.
- To specify the value element in the appsettings.json file, enter .\Hyland.Application.Settings.Utility.exe write-a "C:\Hyland\" --file appsettings.json -p [configuration name]:[property name] -v[value name] where [value name] is the value element corresponding to the key element that you want to encrypt.
- To encrypt these configurations, enter .\Hyland.Application.Settings.Utility.exe write-a "C:\Hyland\" --file appsettings.json -p [configuration name]:[property name] -v[value name] -- encrypt
- Press Enter to execute the command.