From: https://developer.jboss.org/thread/206527

The steps to encrypt the jboss console password:

1) Issue following command to get the encrypted password.

echo -n password | openssl dgst -md5 -binary | openssl base64

2) Add following lines in <Jboss Home Directory>/server/default/conf/login-config.xml inside <application-policy name=”jmx-console”>

<module-option name=”hashAlgorithm”>MD5</module-option>

<module-option name=”hashEncoding”>base64</module-option>

3) Uncomment below line in <Jboss Home Directory>/common/deploy/jmx-console.war/WEB-INF/jboss-web.xml

<security-domain>java:/jaas/jmx-console</security-domain>

4) Add the password which you have generated in step 1 to the following file.

<Jboss Home Directory>/server/default/conf/props/jmx-console-users.properties like below

admin=X03MO1qnZdYdgyfeuILPmQ==

Leave a Reply

Your email address will not be published. Required fields are marked *