Updating ThingWorx AppKeys > For Linux > Update a ThingWorx AppKey For Analytics Server – Scripted Process
Update a ThingWorx AppKey For Analytics Server – Scripted Process
When you need a new ThingWorx AppKey, use the procedure below to update and encrypt the key. This scripted process is available on for Analytics Server version 8.4.4 or later. If you are using an earlier version, a manual process is available to encrypt the new key. For more information, see Update a ThingWorx AppKey – Manual Process.
1. Log into ThingWorx Composer, as an Administrator, and create a new AppKey. For more information, see the Application Keys section of the ThingWorx Help Center.
The Application Key you provide to ThingWorx Analytics must be a key assigned to a user with Administrator privileges. After installation, the Application Key can be reassigned to a non-administrator user who has the appropriate permissions. See ThingWorx Application Key Permission Levels.
The same key can be used for both Analytics Server and Platform Analytics.
2. Open a terminal window and navigate, as the root user, to the bin directory where your ThingWorx Analytics is installed:
3. Execute the following command to run a script that will update the encryption of your new AppKey:
./update-encrypted-password.sh t <new AppKey>
A message is displayed when the encryption process is complete and the command prompt returns.
4. In the same bin directory, use the following command to restart the services:
./twas.sh restart
It might take several seconds for the Things in ThingWorx to refresh and reconnect.
Was this helpful?