2.50 INFO MASTERKEY

Use the INFO MASTERKEY command to view the contents of a currently open master-key wallet. If a wallet store does not exist, a new Wallet store file is created. This Wallet store file is then used to host different encrypted keys as they are created.

The default output shows the version history of the master key, with the creation date of a version and the status of the version. The status can be one of the following:

  • Current: Indicates this is the current version of the master key, which is the latest version of the master key as well.

    Note:

    Changing prior key versions to Current status is not allowed.
  • Available: Indicates this version is not the current one but can be made active, if needed.

  • Deleted: Indicates that this version is marked to be deleted when the PURGE WALLET command is issued.

The use of a wallet and master key is not supported for the DB2 for i, DB2 z/OS, and NonStop platforms.

Syntax

INFO MASTERKEY [VERSION version]
VERSION version

Shows detailed information about a specific version of the master key. The output includes the original creation date, the latest renewal date, the status, and the hash of AES (Advanced Encryption Standard) Key.

Examples

INFO MASTERKEY
INFO MASTERKEY VERSION 7

Example: Admin Client

OGG (https://localhost:15000 Atlanta) 17> info masterkey
Masterkey Name: OGG_DEFAULT_MASTERKEY

Version         Creation Date                   Status
1               2019-11-21T19:37:23.000+00:00   Current