Modify the ActiveMQ connector password
To change the connector password, follow these steps:
-
Generate a new secret-password pair:
$ /opt/bitnami/activemq/bin/activemq encrypt --password NEWSECRET --input NEWPASSWORD
-
Substitute the encrypted password (from the last line of the previous command output) in /opt/bitnami/activemq/conf/credentials-enc.properties:
activemq.password=ENC(NEWENCRYPTEDPASSWORD)
-
Change the value of the secret in the file /opt/bitnami/activemq/conf/activemq.xml:
<bean id="configurationEncryptor" class="org.jasypt.encryption.pbe.StandardPBEStringEncryptor"> <property name="algorithm" value="PBEWithMD5AndDES"/> <property name="password" value="NEWSECRET"/> </bean>