AMT Help Files

Generating Keys

It is necessary to change the default encryption keys found inside the appsettings.json files for an application. The already existing keys found inside these files are generated by Avanade and these are not intended for normal use. It is therefore strongly advised to generate your own unique keys with the Setup tool.

 

Most AMT web applications have a setting called "AmtCookieEncryptionKey" in their appsettings.json files. This key needs to be the same in each appsettings file across the entire AMT environment.

 

  1. Navigate to the following directory: ..\<AMT Environment>\Setup.
  2. Open the Setup.exe file.
  3. Navigate in the Setup menu to FileSettings and select the second tab called Key generation.
  4. Select the Generate key button.
  5. Copy the generated key and use it in the appsetting.json file that requires a key.

    warning Do not use the key in the image