Decrypting database passwords (Windows)
To decrypt the database password:
- Stop Sterling B2B Integrator.
-
Complete the following steps:
- Click Start.
- Right-click Command Prompt and select Run as administrator. The Administrator: Command Prompt dialog box is displayed.
- Navigate to \<install_dir>\properties.
- Open the sandbox.cfg file.
-
Copy 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.) -
Complete the following steps:
- Click Start.
- Right-click Command Prompt and select Run as administrator. The Administrator: Command Prompt dialog box is displayed.
- Navigate to \<install_dir>\bin.
- Enter decrypt_string.cmd encrypted _password.
For
encrypted_password
, use the text that you copied in Step 4.You are prompted for the system passphrase.
Your decrypted password appears.
-
Complete the following steps:
- Click Start.
- Right-click Command Prompt and select Run as administrator. The Administrator: Command Prompt dialog box is displayed.
- Navigate to \<install_dir>\properties.
- 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 to 8 to decrypt these entries.
You should also decrypt any passwords present in the property files. Encrypted passwords typically reside in the following property files:
- sandbox.cfg
- apservsetup
- jdbc.properties/.in
- customer_overrides.properties/.in
-
Complete the following steps:
- Click Start.
- Right-click Command Prompt and select Run as administrator. The Administrator: Command Prompt dialog box is displayed.
- Navigate to \<install_dir>\bin.
- Enter setupfiles.cmd.
- Enter deployer.cmd.
- Enter startWindowsService.cmd to start Sterling B2B Integrator.