Customizing the default keystore

Contributors NetAppZacharyWambold Download PDF of this page

You can customize the default keystore or certificate by using the keytool command that is available on Windows and UNIX.

The keytool command is provided by Java. In some environments, you might have to switch to the Java installation directory in order to run the keytool command.

Snap Creator does not support truststores.

  1. Stop the Snap Creator Agent.

  2. Generate a new keystore with a single certificate:

    keytool -genkeypair -alias alias_name -keystore keystore_file -keypass private_key_password -storepass keystore_password

    keytool -genkeypair -alias servicekey -keystore serviceKeystore.jks -keypass kypswd123 -storepass kystrpswd123

  3. Copy the keystore file to the scAgent4.3.0/etc/ directory.

  4. Update the KEYSTORE_FILE=keystore_file and KEYSTORE_PASS=keystore password parameters in the Snap Creator Agent configuration file (scAgent4.3.0/etc/allowed_commands.config).

  5. Start the Snap Creator Agent.

Related information