Encrypting the password in the Replication Server configuration file v7
If you need to change the password in the Replication Server configuration file, you must first encrypt the password. Use the encrypt
command of the Replication Server CLI to generate the encrypted form of the password from its plain text form given in an input file.
Create a text file with the password you want to encrypt. Don't leave any white space before or after the password.
The following example shows the text
newpassword
in the input filepassfile
:$ cat passfile newpassword $
Use the
edb-repcli.jar
file to execute the Replication Server CLI with theencrypt
command by first including the Java bin directory in yourPATH
environment variable and makingXDB_HOME/bin
your current working directory.For example, assuming
/usr/bin
contains the Java executable program and Replication Server is installed into thePOSTGRES_INSTALL_HOME
directory, perform the following:$ export PATH=/usr/bin:$PATH $ cd /opt/PostgresPlus/9.4AS/bin $ java -jar edb-repcli.jar -encrypt -input ~/passfile -output ~/encrypted The following shows the encrypted form of the password in the output file encrypted: $ cat ~/encrypted 4mKq/4jQQoV2IypCSmPpTQ== $
Copy and paste the encrypted password into the Replication Server configuration file.
#xDB Replication Server Configuration Properties #Thu Sep 03 11:13:27 GMT-05:00 2015 admin_password=4mKq/4jQQoV2IypCSmPpTQ== admin_user=admin