+

Search Tips   |   Advanced Search

KeySetCommands (AdminTask)

KeySetCommands commands can be used to create, delete, and query for key set settings in the configuration.


createKeySet

Create the key set settings in the configuration. Use this command to control key instances that have the same type.

Target object None.

Required parameters

-name

Name that uniquely identifies the key set. (String, required)

-aliasPrefix

Prefix for the key alias when a new key generates. (String, required)

-password

Password that protects the key in the keystore. (String, required)

-maxKeyReferences

Maximum number of key references from the returned keys in the key set of interest. (Integer, required)

-keyStoreName

Keystore containing the keys. (String, required)

Optional parameters

-scopeName

Unique name of the management scope. (String, optional)

-deleteOldKeys

Set to true to delete old keys when new keys are generated. Otherwise, set the value of this parameter to false. (Boolean, optional)

-keyGenerationClass

Class used to generate new keys in the key set. (String, optional)

-keyStoreScopeName

Management scope where the keystore is located. (String, optional)

-isKeyPair

Set to true if the keys in the key set are key pairs. Otherwise, set the value of this parameter to false. (Boolean, optional)

Example output The command returns the configuration object name of the key set object created.

Examples

Batch mode example:

Interactive mode:


deleteKeySet

Delete the settings of a key set from the configuration.

Target object None.

Required parameters

-name

The name that uniquely identifies the key set. (String, required)

Optional parameters

-scopeName

Unique name of the management scope. (String, optional)

Example output The command does not return output.

Examples

Batch mode example:

Interactive mode:


generateKeyForKeySet

Generate keys for the keys in the key set.

Target object None.

Required parameters

-keySetName

Name of the key set. (String, required)

Optional parameters

-keySetScope

Scope of the key set. (String, optional)

-keySetSaveConfig

Set to true to save the configuration of the key set. Otherwise, set the value of this parameter to false. (Boolean, optional)

Example output The command does not return output.

Examples

Batch mode example:

Interactive mode:


getKeySet

Display the settings of a particular key set.

Target object None.

Required parameters

-name

Name that uniquely identifies the key set. (String, required)

Optional parameters

-scopeName

Unique name of the management scope. (String, optional)

Example output The command returns the settings of the specified key set group.

Examples

Batch mode example:

Interactive mode:


listKeySets

List the key sets in a particular scope.

Target object None.

Required parameters None.

Optional parameters

-scopeName

Unique name of the management scope. (String, optional)

-displayObjectName

Set to true to list the key set configuration objects within the scope. Set false to list the strings containing the key set group name and management scope. (Boolean, optional)

-all

Specify the value of this parameter as true to list all key sets. This parameter overrides the scopeName parameter. The default value is false. (Boolean, optional)

Example output The command returns the key sets for the scope that specified.

Examples

Batch mode example:

Interactive mode:


modifyKeySet

Change the settings of an existing key set.

Target object None.

Required parameters

-name

Name that uniquely identifies the key set. (String, required)

Optional parameters

-scopeName

Unique name of the management scope. (String, optional)

-aliasPrefix

Prefix for the key alias when a new key generates. (String, optional)

-password

Password that protects the key in the keystore. (String, optional)

-maxKeyReferences

Maximum number of key references from the returned keys in the key set of interest. (Integer, optional)

-deleteOldKeys

Set to true to delete old keys when new keys are generated. Otherwise, set the value of this parameter to false. (Boolean, optional)

-keyGenerationClass

Class used to generate new keys in the key set. (String, optional)

-keyStoreName

Keystore containing the keys. (String, optional)

-keyStoreScopeName

Management scope where the keystore is located. (String, optional)

-isKeyPair

Set to true if the keys in the key set are key pairs. Otherwise, set the value of this parameter to false. (Boolean, optional)

Example output The command does not return output.

Examples

Batch mode example:

Interactive mode:


Related concepts

  • Key management for cryptographic uses
  • Use the wsadmin scripting AdminTask object for scripted administration
  • Create a key set configuration
  • Create an SSL configuration at the node scope
  • Key sets settings