+

Search Tips   |   Advanced Search

KeyStoreCommands

Use the Jython or Jacl scripting languages to configure keystores with the wsadmin tool. A keystore is created by the application server during installation and can contain cryptographic keys or certificates. The commands in the KeyStoreCommands group can be used to create, delete, and manage keystores.

The KeyStoreCommandscommands include:


changeKeyStorePassword

Modify the password of a keystore. The command automatically saves the new password to the configuration.

Required parameters:

Optional parameters:

Examples

Batch mode example usage:

Interactive mode example usage:


changeMultipleKeyStorePasswords

Update the passwords for each keystores in the configuration that has a specific password. This is useful because when we create keystore files on the system, they will have WebAS as a password by default.

Required parameters:

Optional parameters: None.

Examples

Batch mode example usage:

Interactive mode example usage:


createKeyStore

Create the keystore settings in the configuration and the keystore database.

Required parameters:

Optional parameters:

Examples

Batch mode example usage:

Interactive mode example usage:


createCMSKeyStore

Create a CMS keystore database and the keystore settings in the configuration.

Required parameters:

Optional parameters: None.

Examples

Batch mode example usage:

Interactive mode example usage:


deleteKeyStore

Delete the settings of a keystore from the configuration and the keystore file.

Required parameters:

Optional parameters:

Examples

Batch mode example usage:

Interactive mode example usage:


exchangeSigners

Exchange signer certificate between keystores.

Required parameters:

Optional parameters:

Examples

Batch mode example usage:

Interactive mode example usage:


getKeyStoreInfo

Display the settings of a particular keystore.

Required parameters:

Optional parameters:

Examples

Batch mode example usage:

Interactive mode example usage:


listKeyFileAliases

List the certificates in a keystore file.

Required parameters:

Optional parameters: None.

Examples

Batch mode example usage:

Interactive mode example usage:


listKeyStores

List the keystore for a particular scope.

Required parameters: None.

Optional parameters

Examples

Batch mode example usage:

Interactive mode example usage:


listKeyStoreTypes

List all valid keystore types.

Required parameters: None.

Optional parameters: None.

Examples

Batch mode example usage:

Interactive mode example usage:


listSignatureAlgorithms

List the signature algorithms that are valid for the current security level configured. If a security standard is not enabled, all signature algorithms are returned; otherwise, the valid signature algorithms for the configured security level are returned.

Required parameters: None.

Optional parameters: None.

Security mode Available signature algorithms
Fips not enabled

SHA1withRSA
SHA1withDSA
SHA256withRSA
SHA384withRSA
SHA512withRSA
SHA256withECDSA
SHA384withECDSA
SHA512withECDSA
Note: SHA512withECDSA requires Java unrestricted policy installed.

FIPS140-2

SHA1withRSA
SHA1withDSA
SHA256withRSA
SHA384withRSA
SHA512withRSA

SP800-131 - Transition

SHA1withRSA
SHA1withDSA
SHA256withRSA
SHA384withRSA
SHA512withRSA
SHA256withECDSA
SHA384withECDSA
SHA512withECDSA
Note: SHA512withECDSA requires Java unrestricted policy installed.

SP800-131 - Strict

SHA256withRSA
SHA384withRSA
SHA512withRSA
SHA256withECDSA
SHA384withECDSA
SHA512withECDSA
Note: SHA512withECDSA requires Java unrestricted policy installed.

Suite B 128

SHA256withECDSA

Suite B 192

SHA256withECDSA
SHA384withECDSA


modifyKeyStore

Modify attributes for an existing keystore. Only some keystore attributes are modifiable, depending on what we are modifying. Use the following guidelines to use the command:

Required parameters:

Optional parameters:

Examples

Batch mode example usage:

Interactive mode example usage:


Related:

  • Key management for cryptographic uses
  • wsadmin AdminTask
  • Automating SSL configurations using scripting
  • Create an SSL configuration at the node scope using scripting
  • Use wsadmin scripting with Jython