-
1. Re: Steps to Encrypt the Jboss admin-console password
jcacek Oct 17, 2012 6:41 PM (in response to mahi4422)1 of 1 people found this helpfulHello,
use hashed values to protect your passwords. Look at http://docs.jboss.org/jbosssecurity/docs/6.0/security_guide/html/Login_Modules.html#Using_JBoss_Login_Modules-Password_Hashing for details.
-
2. Re: Steps to Encrypt the Jboss admin-console password
ramp2525 Oct 18, 2012 6:39 PM (in response to jcacek)Hi,
Follow below steps.
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==