genseckey
-genseckey {-alias alias |
-aliasrange aliasRange} {-keyalg keyalg}
{-keysize keysize} [-keypass keypass]
{-storetype storetype} {-keystore keystore}
[-storepass storepass] {-providerClass provider_class_name {-providerArg provider_arg}}
{-v} {-protected} {-Jjavaoption}
Generates a secret key and stores it in a new KeyStore.SecretKeyEntry identified by alias.
keyalg specifies the algorithm to be used to generate the secret key, and keysize specifies the size of the key to be generated. keypass is a password used to protect the secret key. If no password is provided, the user is prompted for it. If you press RETURN at the prompt, the key password is set to the same password as that used for the keystore. keypass must be at least 6 characters long.
- abcfrg
- ibmkey123tape
- abc000000000000000001
- abc00a0120fa000000001
- abcefghij1234567 - wrong length
- abcg0000000000000001 - prefix is longer than 3 characters
- -aliasrange ibm1-a
- -aliasrange xyz01-fff
The -genseckey command is not supported for RACF® keystores.