Updating a RabbitMQ Password > Update a RabbitMQ Password – Windows
Update a RabbitMQ Password – Windows
Overview
If you install the instance of RabbitMQ provided with the Platform Analytics installer, the password is encrypted by default during installation. If, at some point, you need to reset the RabbitMQ password, it must be updated in both ThingWorx and the Property Transform microserver. Follow the procedures below to complete all the necessary tasks.
Update the Password in RabbitMQ
To update a RabbitMQ password, make all of the following updates:
1. Open the Windows PowerShell, or a Command Prompt, in Administrator mode.
2. Navigate to the following location in your Platform Analytics installation directory:
<platform_analytics_install>\RabbitMQ\rabbitmq_server-<version>\sbin
For example:
C:\Program Files\ThingWorxAnalytics\PlatformAnalytics\RabbitMQ\rabbitmq_server-<version>\sbin
3. Run the following command:
rabbitmqctl.bat change_password <RabbitMQ username> <new password>
4. Navigate to the local services on your computer. The path to these services will vary based on your version of Windows. (Example: Administrative Tools > Services) and restart the following RabbitMQ and Flink services:
twpas-rabbitmq-service
twpas-flink-service
Update the Password in ThingWorx
1. Open the Windows PowerShell, or a Command Prompt, in Administrator mode.
2. Navigate to the bin directory of the Security Management Tool.
* 
The Security Management Tool was downloaded and configured the first time you manually encrypted the RabbitMQ password. To review that procedure, see the Configure Property Transform Settings in ThingWorx and navigate to the Encrypt the RabbitMQ Password section.
3. Run the following command:
security-common-cli.bat keystore.conf set encrypt.propertytransform.password "<new RabbitMQ password>"
4. Restart ThingWorx.
Update the Password in the Property Transform Microserver
This scripted procedure automates most of the steps involved in updating an encrypted password. It eliminates the manual work of copying randomly generated Key Store directory and file names and plugging them into a complex Java encryption command. The encryption script is stored in the install bin directory and is launched with a simple command that requires two parameters.
1. Open the Windows PowerShell, or a Command Prompt, in Administrator mode, and navigate to the bin directory where your Platform Analytics is installed:
C:\Program Files\ThingWorxAnalytics\PlatformAnalytics\bin
2. Execute the following command to run a script that will update the encryption of your new RabbitMQ password:
update-encrypted-password.bat r <new RabbitMQ password>
A message is displayed when the encryption process is complete and the command prompt returns.
3. Navigate to the local services on your computer. The path to these services will vary based on your version of Windows. (Example: Administrative Tools > Services) and restart the following Property Transform service:
twpas-property-transform-service
Was this helpful?