Decrypting database passwords (Unix/Linux)
Use properties files and commands to decrypt database passwords.
To decrypt the database password:
- Stop Sterling B2B Integrator.
- Open the /<install_dir>/properties directory.
- Open the sandbox.cfg file.
- Copy the encrypted password from the database_PASS property.
Use the text that appears after the
database_PASS=text
.For example, ifdatabase_PASS= OBSCURED:123ABCxyz321
, you would copy the textOBSCURED:123ABCxyz321
. (OBSCURED is the encryption method for the password.) - Open the /<install_dir>/bin directory.
-
Enter the command ./decrypt_string.sh <encrypted_password>.
For
<encrypted_password>
, use the text that you copied in Step 4.You are prompted for the system passphrase. After you enter the passphrase, your decrypted password appears. - Open the /<install_dir>/properties directory.
- Edit the sandbox.cfg file to replace the encrypted password with the password that was returned in Step 6.
- You need to decrypt the entries for the YANTRA_DB_PASS and DB_PASS properties. Repeat Steps 4 -
8 to decrypt these entries. You must also decrypt any passwords present in the property files. Encrypted passwords typically exist in the following property files:
- sandbox.cfg
- apservsetup
- jdbc.properties
- jdbc.properties.in
- customer_overrides.properties
- customer_overrides.properties.in
- Open the /<install_dir>/bin directory.
- Enter the command ./setupfiles.sh.
- Enter the command ./deployer.sh.
- Enter the command ./run.sh to start Sterling B2B Integrator.
- Enter your passphrase.