The Hyland Application Settings Utility (H.A.S.U) is a command-line utility for writing and encrypting specified sections of JSON configuration files. This section explains how to use H.A.S.U to encrypt settings contained within the appsettings.json file, present in the HCMIS-BE backend service installation directory.
Note: For detailed instructions on how to use the Hyland Application
Settings Utility, refer to the Hyland API Server documentation.
To encrypt the settings within the appsettings.json file using the H.A.S.U:
- 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.