| Where allowed to run: All environments (*ALL) Threadsafe: Yes |
Parameters Examples Error messages |
The Set Master Key (SETMSTKEY) command sets the specified master key from the parts already added. Master key parts can be added with the Add Master Key Part (ADDMSTPART) CL command, the Qc3LoadMasterKeyPart API, or Manage Master Keys panel in System i Navigator. Upon successful completion of this command, any keys encrypted under this master key should be retranslated. In order to save the master keys, a Save System (SAVSYS) command must be run.
For more information on master keys, refer to the Cryptographic services key management section of the Security category in the IBM Systems Information Center at http://www.ibm.com/systems/infocenter/.
Restrictions:
| Top |
| Keyword | Description | Choices | Notes |
|---|---|---|---|
| MSTKEY | Master key | 1-8, *ASP, *SAVRST | Required, Positional 1 |
| Top |
Specifies the master key on which to perform the action.
This is a required parameter.
The action will be performed on:
| Top |
SETMSTKEY MSTKEY(3)
This command first moves the current version of Master Key 3 into the old version, and then moves the new version (consisting of all parts added for Master Key 3 since the last Set Master Key) into the current version.
| Top |
*ESCAPE Messages
| Top |