How to Encrypt the ActiveMQ Admin console user password

How to Encrypt the ActiveMQ Admin console user password

Solution :
Following, are the steps for encrypting admin console password.
1. Stop ActiveMQ service
2. Open a command line and Go to <ACTIVEMQ_HOME>\lib\web
3. Encrypt the password using the following command,
java -cp jetty-util-9.4.51.v20230217.jar org.eclipse.jetty.util.security.Password admin NewPassword
Example - 
java -cp jetty-util-9.4.51.v20230217.jar org.eclipse.jetty.util.security.Password admin Abc123

This will output the following Encrypted password1

CRYPT:advwtv/9yU5yQ

4) Open the jetty-realm properties file from ActiveMQ conf directory.

5)Below lines are the last line of the jetty-realm.properties file(please find the below screenshot for your reference).


    admin - CRYPT:Paste the encrypted password here,admin

6)start the activemq service.
7)Log in to the below  URL using a new password.
      localhost:8161/admin/queues.jsp

      Links to better reach 

            Bot Store

             EPD