Rotating an encryption key
The keyrotate tool uses the primary encryption key to re-encrypt database secure data that was encrypted with other keys.
By default, the tool runs in a dry-run mode such that the database is not modified, and the tool only demonstrates the changes.
An extra flag is required to cause the tool to carry out the changes. This tool requires a significant amount of time to run. Running the tool in the mode that carries out changes might take much longer than the dry-run mode.
The keyrotate tool can run while the server is online. In an HA cluster, you must run the tool on only one cluster member.
-
Edit the
installed.properties
file and set theencryption.keystore.alias
property to the correct alias.In an HA cluster, each member has its own
installed.properties
file, so each must be edited individually. -
Restart the updated server.
The server loads keys and the primary key setting only at startup. In an HA cluster, you must restart each updated member.
To rotate a secure property encryption key: