Add an alias to an agent relay

Prerequisites: Set properties for mutual authentication

Before you can generate a certificate for an agent relay, you must add an alias to the agent relay.

Note: Administrative privileges required.

To add an alias to an agent relay:

  1. Make sure your agent relay machine JAVA_HOME environment variable points to the directory where java is installed.

  2. Open a shell and navigate to the agent relay's\conf\jms-relay directory.

  3. From the agent relay's <relay_install_directory>\conf\jms-relay directory, run the following command, where <alias_name> is the name you give the agent relay alias. We recommend using the agent relay's name.

    Copy code
    keytool -genkeypair -dname "cn=localhost" -alias <alias_name> -keypass changeit -keystore agentrelay.keystore -storepass changeit -keyalg RSA -keysize 2048 -validity 7305
  4. To check the result, run this command:

    keytool -list -keystore agentrelay.keystore

Back to top

Next steps: