Create a system key to encrypt sensitive configuration values
Follow these instructions to create the system key that enables automatically or manually encrypting sensitive configuration values such as passwords. Copy the system key to the agent for each node. Optionally, configure a custom name for the opsc_system_key or a path to the key when placed in a non-default location. When adjusting configuration files for an existing cluster, manually encrypt the configuration values.
- 
If you are using 256-bit encryption key strength, upgrade the JRE with enhanced security jar files. Download and install the Java Cryptography Extension (JCE), unzip the jar files, and place them under $JAVA_HOME/jre/lib/security.
- 
In your opscenterd directory, run the system tool to create the key with the desired mode and key strength: bin/opscenter_system_key_tool create ECB 128By default, the system key is named opsc_system_keyand is located in the same directory as youropscenterd.conf. For package installations, this is/etc/opscenter/, and for tarball installations, it isINSTALL_DIRECTORY/conf/.The name of the system key and the path to the encryption key are configurable in both opscenterd.confandaddress.yaml. The options inaddress.yamltake precedence. The location of theaddress.yamlfile depends on the type of installation. For package installations, it is located at/var/lib/datastax-agent/conf/address.yaml, and for tarball installations, it is located atINSTALL_DIRECTORY/conf/.[security] # Specifies whether opscenter should attempt to decrypt sensitive config values config_encryption_active = True # Name of the system key used to encrypt/decrypt stored passwords. config_encryption_key_name = opsc_system_key # Path to the encryption key. If left blank, the directory of opscenterd.conf will be used config_encryption_key_path =The only fields in address.yamlyou might need to enter areconfig_encryption_key_nameandconfig_encryption_key_pathif you are placing the keys in a location that is not standard on the agents.
- 
Manually copy the system key file to the agent for each node. The key file must reside in the same directory as the address.yamlfor the agent.cp local/opsc_system_key ../agent/local
- 
Restart OpsCenter and the agents. 
