Encrypting Password for Data Source
To encrypt the password for data source on JBoss WildFly application server, update the standalone.xml file.
Procedure
Copyright © Cloud Software Group, Inc. All rights reserved.
To encrypt the password for data source on JBoss WildFly application server, update the standalone.xml file.
<security-domains> <security-domain name="EncryptedPassword"> <authentication> <login-module code="org.picketbox.datasource.security.SecureIdentityLoginModule" flag="required"> <module-option name="username" value="@MDM.DB.USER@"/> <module-option name="password" value="@MDM.DB.PASSWORD.ENTCRYPT@"/> <module-option name="managedConnectionFactoryName" value="jboss.jca:service=LocalTxCM,name=dataSource-1-PoolName,dataSource-2-PoolName"/> </login-module> </authentication> </security-domain> </security-domains>
<datasources>
<datasource ... >
.....
<security>
<user-name>mdmuser</user-name>
<password>mdmpassword</password>
</security>
</datasource>
</datasources>
<datasources>
<datasource ... >
.....
<security>
<security-domain>EncryptedPassword</security-domain>
</security>
</datasource>
</datasources>
java -cp modules\org\picketbox\main\picketbox-version.final.jar;modules\org\jboss\logging\main\jboss-logging-version.GA.jar org.picketbox.datasource.security.SecureIdentityLoginModule password
The command returns the encrypted password. You can use the returned password in your security domain.