Copying AES secure keys in the secure key repository

Use the zkey copy command to copy (duplicate) an existing secure key in the secure key repository under a new name.

Specify the name of the key that is to be copied using the --name option and the name of the copied key using the --new-name option. You cannot use wildcards.

Note: When copying a secure key, the volume associations are not copied because a specific volume can only be associated with a single secure key. Specify the --volumes option to associate different volumes with the copied secure key, or use the change command to associate volumes afterwards.

Examples:

# zkey copy --name secure_xtskey1 --new-name secure_xtskey2
# zkey copy --name secure_xtskey1 --new-name secure_xtskey2 \
            --volumes /dev/mapper/disk2:enc-disk2