Base64 encoding
Step 1. Encrypt the password
To encrypt the database password:
- Go to
<install-directory>/bin
. Run the following command to encrypt your password.
java -cp "./*" com.atlassian.secrets.cli.db.DbCipherTool
Step 2. Add the encrypted password to the properties file
To add the encrypted password:
- Back up the
<home-directory>/confluence.cfg.xml
file. Move the backup to a safe place outside of your instance. In the
confluence.cfg.xml
file, replace thehibernate.connection.password
property with the password generated by the CLI. Also, specify thejdbc.password.decrypter.classname
property. For example:<property name="jdbc.password.decrypter.classname">com.atlassian.secrets.store.base64.Base64SecretStore</property> <property name="hibernate.connection.password">your-obfuscated-password</property>
- Restart Confluence.
Decrypt the password
To decrypt the password, extend the command with the -m decrypt
parameter:
java -cp "./*" com.atlassian.secrets.cli.db.DbCipherTool -m decrypt
When asked for a password, provide the encrypted one from your confluence.cfg.xml
file.
Last modified on May 10, 2024
Powered by Confluence and Scroll Viewport.