How to start JasperReport Server 6.2 with encrypted password

Document ID : KB000015913
Last Modified Date : 14/02/2018
Show Technical Document Details
Question:

When performing a JasperReport Server 6.2 install, the password requested to use in the password field is encrypted. The installer will proceed but will not start with the encrypted password. In order to start the JasperReport Server, a cleartext password is inserted. Is it possible to use an encrypted password and if so what are the instructions to do so?

Answer:

JasperReport Server 6.2 supports encrypted password. In order to make this work, please follow the instructions listed below:


1. Create copy of sample.properties file, and rename to default_master.properties.
2. Copy default_master.properties file to <CA-Build>/buildomatic folder.
3. Add the following to the .properties file:
a. encrypt=true
b. propsToEncrypt=dbPassword
4. Open cmd prompt, navigate to <CA Build>/buildomatic and run: js-ant.bat gen-config
5. Copy the newly encrypted dbPassword value from the properties file into context.xml

After these instructions are followed, the JasperReport server will start up successfully with the encrypted password.