JBOSS Encrypt passwords
To encrypt the passwords stored in JBOSS configuration files:
1) Create a script: encrypt_password.sh with the content
------------------------------------------------------------
cd $JBOSS_HOME
echo "Please enter the password to be encrypted"
read password
java -cp lib/jboss-logging-spi.jar:common/lib/jbosssx.jar org.jboss.resource.security.SecureIdentityLoginModule $password
------------------------------------------------------------
2) Execute the script.
Ex:
./encrypt_password.sh
Please enter the password to be encrypted
test
Encoded password: 48e90df5bc00051e
------------------------------------------------------------
2) Execute the script.
Ex:
./encrypt_password.sh
Please enter the password to be encrypted
test
Encoded password: 48e90df5bc00051e
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home