How do you encrypt the CA Identity manager (IM) Database connections password used in Jboss\ Wildfly implementations?
Identity Manager
Release(s): 12.6.7, 12.6.8, 14.x
Navigate to the pwdtools directory "<IM_HOME>\IAM Suite\Identity Manager\tools\PasswordTool" from the Windows command line.
For example:
C:\Program Files (x86)\CA\Identity Manager\IAM Suite\Identity Manager\tools\PasswordTool
Execute the following, assuming your password is 'testpassword':
pwdtools -JSAFE -p testpassword
Plain Text: testpassword
Encrypted value: {PBES}:wOU48f47Gksy8I5Yj0i60w==
In a text editor, open the appropriate standalone file* and enter the encrypted value :
For Example
<security>
<user-name>sa</user-name>
<password><INSERT_NEW_PASSWORD_HERE></password>
</security>
*standalone file locations are as follows:
<appserver_home>\standalone\configuration\standalone-full.xml (single node installation)
<appserver_home>\standalone\configuration\standalone-full-ha.xml (clustered installation)