Jump to content
  • How to make the keystores same for both the JRS (or for multiple JRS):


    Swapnil Pawar
    • Features: JasperReports Server Product: JasperReports® Server

    To make the keystores same for both the JRS (or for multiple JRS):

    Take the backup of the jasperserver-pro folder, keystores, repository backup, database backup at the very first.

    Then you can import and export the resource from JRS 1 to JRS 2 with the server key also without any error as both the keystores are the same. The same thing applies to the REST-API import and export operation.

    Scenario 1: Support you have two JRS, jrs 1 and jrs 2 installed successfully then you have to make the keystore same in this situation please follow the below steps of scenario 1:

    i)Keep the JRS 1 untouched, we will use the first jrs 1 keystores for the second jrs before that you have to take the export of the whole repository using the legacy key or take the buildomatic export with the deprecatedImportexportEncSecretekey, you may take the backup of the jrs 2 keystore backup, database backup, jasperserver-pro backup for the safety purpose.

    ii)Then delete the jasperserver-pro from the application server, delete the databases associated with the JRS 2, and delete the keysore for the 2 JRS.

    iii)Then you have to copy the JRS 1 keystore into the JRS 2 keystores folder, then you can confirm the path of the second jrs keystores(.jrsks, .jrsksp file path) is set correctly in the buildomatic/keystore.init.properties file.

    iv)In the default.master.properties file, in this file make sure the path of the application is set correctly, then the name of the repository database(jasperserver db) is given different for example you can give the name as jasperserver8 or jaspersever88, etc as per you like. the same thing goes for the repository database.

    v)Give the unique port for the diagnostic (In the default.master.properties file) to avoid the port issue if it is used by another jrs for exmaple:10995, 10994,etc.

    vi)Run the following command in the buildomatic to reflect the changes which we did in the default.master.properties file to avoid any error during the installation of the new jrs2.

    js-ant clean-config gen-config

    vii)To install the new JRS in the windows operating system run the command as follows:

    js-install.bat 

    complete the installation without any error. Then import the export.zip (which we exported with a legacy key from the JRS 2 before deleting it) from the JRS2 with the legacy.

    viii)Start the JRS 1 and JRS 2 and confirm the Keystore becomes the same as follows:

    export one of the resource from JRS 1 with the server key and import it into JRS 2 with the same as server key. As the encryption/keystores are the same so you should face any error during the import that's quick confirmation on this.

    scenario 2: You have only one JRS installed and no other JRS.

    Then follow the above steps from iii to viii.

    Please review the below attached in-detail video for this approach, I hope this will help you very much.

    video1823716211_1.mp4


    User Feedback

    Recommended Comments

    There are no comments to display.



    Create an account or sign in to comment

    You need to be a member in order to leave a comment

    Create an account

    Sign up for a new account in our community. It's easy!

    Register a new account

    Sign in

    Already have an account? Sign in here.

    Sign In Now

×
×
  • Create New...