JBOSS Admin

Monday, March 29, 2010

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

posted by Jayanthi Krishnamurthy @ 3:20 PM   0 Comments

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home

Newer›  ‹Older

About Me

Name: Jayanthi Krishnamurthy

View my complete profile

Posts

  • JBOSS Encrypt passwords

Older Posts Newer Posts

Archives

Subscribe to
Posts [Atom]