wood burning stoves 2.0*
The moose likes JBoss/WildFly and the fly likes encrypting jboss passwords using the keystore mechanism Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Products » JBoss/WildFly
Bookmark "encrypting jboss passwords using the keystore mechanism" Watch "encrypting jboss passwords using the keystore mechanism" New topic
Author

encrypting jboss passwords using the keystore mechanism

Dan Grindstaff
Ranch Hand

Joined: Sep 24, 2006
Posts: 138
Hello All,

I am trying to encrypt passwords in jboss but I am not interested in using a datasource to do this. I am trying to just use xml for masking but do not know enough to begin this project. I found an article at http://community.jboss.org/wiki/EncryptingDataSourcePasswords and wondering if I should follow this step by step. I am using JBOSS 4.3 eap and one of the user feedbacks seems to say there are problems following that website's model for 4.3. If anyone has any feedback I would greatly appreciate it. TIA.
Jaikiran Pai
Marshal

Joined: Jul 20, 2005
Posts: 10210
    
166

Dan Grindstaff wrote:

I am trying to encrypt passwords in jboss but I am not interested in using a datasource to do this.

Are you trying to encrypt the password used in the datasource file (-ds.xml)? Or are you trying to encrypt some other password? If the latter, then which file contains that password and where is it used?

[My Blog] [JavaRanch Journal]
Dan Grindstaff
Ranch Hand

Joined: Sep 24, 2006
Posts: 138
Hi and thanks for the reply. I have written a simple java proram based on the SecureIdentityLoginModule. I have built it so that the main class can be run and takes a password parameter and returns the alpha-numeric string, however, I need to 'hook it up' to use the datasource-ds.xml file. Could you give me some pointers on how to do this?

Thanks.
 
wood burning stoves
 
subject: encrypting jboss passwords using the keystore mechanism