WAS v8.5 > Reference > Commands (wsadmin scripting)

SSLConfigCommands command group for AdminTask

We can use the Jython or Jacl scripting languages to configure security with wsadmin. The commands and parameters in the SSLConfigCommands group can be used to create and manage Secure Sockets Layer (SSL) configurations and properties.


createSSLConfig

Create an SSL configuration based on key store and trust store settings. We can use the SSL configuration settings to make the SSL connections.

Target object None.

Required parameters

-alias The name of the alias. (String, required)
-trustStoreNames The key store that holds trust information used to validate the trust from remote connections. (String, required)
-keyStoreName The key store that holds the personal certificates that provide identity for the connection. (String, required)

Optional parameters

-scopeName The name of the scope.
-clientKeyAlias The certificate alias name for the client.
-serverKeyAlias The certificate alias name for the server.
-type The type of SSL configuration.
-clientAuthentication Set true to request client authentication.
-securityLevel The cipher group to use. Valid values include: HIGH, MEDIUM, LOW, and CUSTOM. (String, required)
-enabledCiphers A list of ciphers used during SSL handshake.
-jsseProvider One of the JSSE providers.
-clientAuthenticationSupported Set true to support client authentication.
-sslProtocol The protocol type for the SSL handshake. Valid values include: SSL_TLS, SSL, SSLv2, SSLv3, TLS, TLSv1.
-trustManagerObjectNames A list of trust managers separated by commas.
-trustStoreScopeName The management scope name of the trust store.
-keyStoreScopeName The management scope name of the key store.
-keyManagerName - Name of the Key Manager.
-keyManagerScopeName Scope of the key manager.
-ssslKeyRingName Specifies a system SSL (SSSL) key ring name. The value for this parameter has no affect unless the SSL configuration type is SSSL. (String, optional)
-v3timeout - Time out in seconds for System SSL configuration types. Values range from 1 to 86400.

Example output

The command returns the configuration object name of the new SSL configuration object.

Examples:

Interactive mode example usage:


createSSLConfigProperty

Create a property for an SSL configuration. Use this command to set SSL configuration settings that are different than the settings in the SSL configuration object.

Target object None.

Required parameters

-sslConfigAliasName The alias name of the SSL configuration. (String, required)
-propertyName The name of the property. (String, required)
-propertyValue The value of the property. (String, required)

Optional parameters

-scopeName The name of the scope.

Example output

The command does not return output.

Examples:

Examples:

Interactive mode example usage:


deleteSSLConfig

Delete the SSL configuration object specified from the configuration.

Target object None.

Required parameters and return values

-alias The name of the alias. (String, required)

Optional parameters

-scopeName The name of the scope.

Example output

The command does not return output.

Examples:

Interactive mode example usage:


getInheritedSSLConfig

Return the SSL configuration alias and certificate alias from which a given management scope and direction inherits its SSL configuration information. This command only returns inheritance information; it does not return information about an SSL configuration that is effective for a give scope.

Target object: None

Required parameters and return values

-scopeName The name of the management scope for which to find out where that management schope will inherit its SSL configuration. (String, required)

Optional parameters

None.

Example output

The command returns the SSL configuration alias and certificate alias from which the specified management scope and direction inherits its SSL configuration information.

Examples:


getSSLConfig

Obtain information about an SSL configuration and displays the settings.

Target object: None.

Required parameters and return values

-alias The name of the alias. (String, required)

Optional parameters

-scopeName The name of the scope.

Example output:

The command returns information about the SSL configuration of interest.

Examples:

Interactive mode example usage:


getSSLConfigProperties

Obtain information about SSL configuration properties.

Target object None.

Required parameters and return values

-alias The name of the alias. (String, required)

Optional parameters

-scopeName The name of the scope.

Example output

The command returns additional information about the SSL configuration properties.

Examples:

Interactive mode example usage:


listSSLCiphers

List the SSL ciphers.

Target object None.

Required parameters

-securityLevel The cipher group to use. Valid values include: HIGH, MEDIUM, LOW, and CUSTOM. (String, required)

Optional parameters

-sslConfigAliasName The alias name of the SSL configuration.
-scopeName The name of the scope.

Example output

The command returns a list of SSL ciphers.

Examples:

Interactive mode example usage:


listSSLConfigs

List the defined SSL configurations within a management scope.

Target object None.

Optional parameters

-scopeName The name of the scope.
-displayObjectName Set Set true to to list the SSL configuration objects within the scope. Set the value of this parameter to false to list the strings containing the SSL configuration alias and management scope. (Boolean, optional)
-all Specify the value of this parameter as true to list all SSL configurations. This parameter overrides the scopeName parameter. Default is false. (Boolean, optional)

Example output

The command returns a list of defined SSL configurations.

Examples:

Interactive mode example usage:


listSSLConfigProperties

List the properties for a SSL configuration.

Target object None.

Required parameters

-alias The alias name of the SSL configuration. (String, required)

Optional parameters

-scopeName The name of the scope.
-displayObjectName Set Set true to to list the SSL configuration objects within the scope. Set the value of this parameter to false to list the strings containing the SSL configuration alias and management scope. (Boolean, optional)

Example output

The command returns SSL configuration properties.

Examples:

Interactive mode example usage:


listSSLProtocolTypes

List the SSL protocols valid for the current configured security level. If a security standard is not enabled, the full list of valid protocols are returned. Otherwise, the list of appropriate protocols for the configured security level is returned.

Target object None.

Required parameters None.

Returns: This command lists all available protocols for the current FIPS level.

FIPSLevel and protocolTypes. Following are the available protocol types for each FIPS level.

Security mode Available protocol types
FIPS not enabled SSL_TLS SSL SSLv2 SSLv3 TLS TLSv1 SSL_TLSv2 TLSv1.1 TLSv1.2
FIPS140-2 TLS TLSv1 TLSv1.1 TLSv1.2
SP800-131 - Transition TLS TLSv1 TLSv1.1 TLSv1.2
SP800-131 - Strict TLSv1.2
Suite B 128 TLSv1.2
SP800-131 - Suite B 1.2 TLSv1.2

Examples:


listSSLRepertoires

List all of the SSL configuration instances that we can associate with an SSL inbound channel.

If you create a new SSL alias using the dmgr console, the alias name is automatically created in the node_name/alias_name format. However, if you create a new SSL alias using wsadmin, create the SSL alias and specify both the node name and alias name in the node_name/alias_name format.

Target object SSLInboundChannel instance for which the SSLConfig candidates are listed.

Required parameters None.

Optional parameters None.

Sample output The command returns a list of eligible SSL configuration object names.

Examples:

Interactive mode example usage:


modifySSLConfig

Modify the settings of an existing SSL configuration.

Target object: None.

Required parameters

-alias The name of the alias. (String, required)

Optional parameters

-scopeName The name of the scope.
-clientKeyAlias The certificate alias name for the client.
-serverKeyAlias The certificate alias name for the server.
-clientAuthentication Set Set true to to request client authentication. Otherwise, set the value of this parameter to false. (Boolean, optional)
-securityLevel The cipher group to use. Valid values include: HIGH, MEDIUM, LOW, and CUSTOM. (String, required)
-enabledCiphers A list of ciphers used during SSL handshake.
-jsseProvider One of the JSSE providers.
-clientAuthenticationSupported Set Set true to to support client authentication. Otherwise, set the value of this parameter to false. (Boolean, optional)
-sslProtocol The protocol type for the SSL handshake. Valid values include: SSL_TLS, SSL, SSLv2, SSLv3, TLS, TLSv1.
-trustManagerObjectNames A list of trust managers separated by commas.
-trustStoreName The key store that holds trust information used to validate the trust from remote connections.
-trustStoreScopeName The management scope name of the trust store.
-keyStoreName The key store that holds the personal certificates that provide identity for the connection.
-keyStoreScopeName The management scope name of the key store.
-keyManagerName - Name of the Key Manager.
-keyManagerScopeName Scope of the key manager.
-ssslKeyRingName Specifies a system SSL (SSSL) key ring name. The value for this parameter has no affect unless the SSL configuration type is SSSL.
-v3timeout - Time out in seconds for System SSL configuration types. Values range from 1 to 86400.

Example output

The command does not return output.

Examples:

Interactive mode example usage:


Related concepts:

Key management for cryptographic uses


Related


Use the wsadmin scripting AdminTask object for scripted administration
Automating SSL configurations using scripting
Create an SSL configuration at the node scope using scripting


+

Search Tips   |   Advanced Search