To create a key, enter a key name. The value of the keyname
property is the name used in the CLI and BUI when assigning a key to a pool, project, or
share.
You can either leave the key
property empty, and the system will generate a random key value, or you can enter a hex-encoded, raw 256-bit key value. In the following example, the system generates the key
value.
The key is stored in an encrypted form using the master passphrase from step 1.
hostname:shares encryption local> keys
hostname:shares encryption local keys> show
Keys:
NAME CREATED CIPHER KEYNAME
Properties:
cipher = AES
key =
keyname = (unset)
hostname:shares encryption local> create
hostname:shares encryption local key-000 (uncommitted)> set keyname=Key-0
keyname = Key-0 (uncommitted)
hostname:shares encryption local key-000 (uncommitted)> commit
hostname:shares encryption local keys> show
Keys:
NAME CREATED CIPHER KEYNAME
key-000 2019-7-1 18:43:33 AES Key-0
hostname:shares encryption local keys> select key-000
hostname:shares encryption local key-000> show
Properties:
cipher = AES
key = ce968122d0bba26c3d66b6985ee358d18a786607f80eb4ebd834e4404fe8aa84
keyname = Key-0