Configure srm-control for secured environments using environment variables

Prior to using the srm-control tool, you must configure the properties required for your security setup. You can complete this task by setting environment variables.

To use the srm-control tool in secured environments, you need to ensure that all relevant security properties are configured. Complete the following steps to configure security properties using environment variables.

  1. Log in to the Streams Replication Manager driver host.
    ssh [MY_SRM_DRIVER_HOST]
  2. Configure security properties with environment variables.

    The following example contains all possible environment variables with values. Use the variables required for your environment.

    export SRM_KERBEROS_OPTS="-Djavax.security.auth.useSubjectCredsOnly=false -Djava.security.auth.login.config=/path/to/jaas.conf"
    export security_protocol=SASL_SSL
    export ssl_truststore_location=/path/to/truststore.jks
    export ssl_truststore_password=password123
    export ssl_keystore_location=/path/to/keystore.jks
    export ssl_keystore_password=password123
    export ssl_key_password=password123
    

The srm-control tool is configured.

Use the srm-control tool to manage topic and consumer group replication.