You can use the Jython or Jacl scripting languages to configure
security with the wsadmin tool. The commands and parameters in the
SSLConfigGroupCommands group can be used to create and manage SSL
configuration groups.
The SSLConfigGroupCommands command group for the AdminTask object
includes the following commands:
createSSLConfigGroup
The createSSLConfigGroup command
creates an SSL configuration group in the configuration.
Target object
None
Parameters and return values
- -name
- The name that uniquely identifies the SSL configuration group.
(String, required)
- -direction
- The direction to which the SSL configuration applies. Valid values
include inbound or outbound. (String, required)
- -sslConfigAliasName
- Specifies an alias that uniquely identifies an SSL configuration.
(String, required)
- -scopeName
- The name of the scope. (String, optional)
- -certificateAlias
- Specifies a unique name to identify a certificate. (String, optional)
- -sslConfigScopeName
- Specifies the scope name of the SSL configuration. (String, optional)
Examples
Batch
mode example usage:
Using Jacl:
$AdminTask createSSLConfigGroup {-name createSSLCfgGrp -direction inbound -sslConfigAliasName SSLcfggrp_alias}
Using Jython string:
AdminTask.createSSLConfigGroup ('[-name createSSLCfgGrp -direction inbound -sslConfigAliasName SSLcfggrp_alias]')
Using Jython list:
AdminTask.createSSLConfigGroup (['-name', 'createSSLCfgGrp', '-direction', 'inbound', '-sslConfigAliasName', 'SSLcfggrp_alias'])
Interactive mode example usage:
Using Jacl:
$AdminTask createSSLConfigGroup {-interactive}
Using Jython string:
AdminTask.createSSLConfigGroup ('[-interactive]')
Using Jython list:
AdminTask.createSSLConfigGroup (['-interactive'])
![[jun2010]](../../deltaend.gif)
jun2010
deleteSSLConfigGroup
The deleteSSLConfigGroup
command deletes a SSL configuration group from the configuration.
Target object
None.
Required parameters
- -name
- Specifies the name that uniquely identifies the SSL configuration
group. (String, required)
- -direction
- Specifies the direction to which the SSL configuration applies.
Valid values include inbound or outbound. (String, required)
Optional parameters
- -scopeName
- Specifies the name that uniquely identifies the management scope.
(String, optional)
Examples
Batch
mode example usage:
- Using Jacl:
$AdminTask deleteSSLConfigGroup {-name createSSLCfgGrp -direction inbound}
- Using Jython string:
AdminTask.deleteSSLConfigGroup('[-name createSSLCfgGrp -direction inbound]')
- Using Jython list:
AdminTask.deleteSSLConfigGroup(['-name', 'createSSLCfgGrp', '-direction', 'inbound'])
Interactive mode example usage:
getSSLConfigGroup
The getSSLConfigGroup
command returns information about a SSL configuration setting.
Target object
None.
Required parameters
- -name
- Specifies the name that uniquely identifies the SSL configuration
group. (String, required)
- -direction
- Specifies the direction to which the SSL configuration applies.
Valid values include inbound or outbound. (String, required)
Optional parameters
- -scopeName
- Specifies the name that uniquely identifies the management scope.
(String, optional)
Examples
Batch
mode example usage:
- Using Jacl:
$AdminTask getSSLConfigGroup {-name createSSLCfgGrp -direction inbound}
- Using Jython string:
AdminTask.getSSLConfigGroup('[-name createSSLCfgGrp -direction inbound]')
- Using Jython list:
AdminTask.getSSLConfigGroup(['-name', 'createSSLCfgGrp', '-direction', 'inbound'])
Interactive mode example usage:
listSSLConfigGroups
The listSSLConfigGroups
command lists the SSL configuration groups within a scope and a direction.
Target object
None.
Required parameters
None.
Optional parameters
- -direction
- Specifies the direction to which the SSL configuration applies.
Valid values include inbound or outbound. (String,
optional)
- -scopeName
- Specifies the name that uniquely identifies the management scope.
(String, optional)
- -displayObjectName
- If you set this parameter to true, the command returns a list
of all of the SSL configuration group objects within the scope. If
you set this parameter to false, the command returns a list
of strings that contain the SSL configuration name and management
scope. (Boolean, optional)
- -all
- Specify the value of this parameter as true to list all
SSL configuration groups. This parameter overrides the scopeName parameter.
The default value is false. (Boolean, optional)
Examples
Batch
mode example usage:
- Using Jacl:
$AdminTask listSSLConfigGroups {-displayObjectName true}
- Using Jython string:
AdminTask.listSSLConfigGroups('[-displayObjectName true]')
- Using Jython list:
AdminTask.listSSLConfigGroups(['-displayObjectName' 'true'])
Interactive mode example usage:
modifySSLConfigGroup
The modifySSLConfigGroup
command modifies the setting of an existing SSL configuration group.
Target object
None.
Required parameters
- -name
- Specifies the name that uniquely identifies the SSL configuration
group. (String, required)
- -direction
- Specifies the direction to which the SSL configuration applies.
Valid values include inbound or outbound. (String,
required)
Optional parameters
- -certificateAlias
- Specifies a unique name to identify a certificate. (String, optional)
- -scopeName
- Specifies the name that uniquely identifies the management scope.
(String, optional)
- -sslConfigAliasName
- Specifies the alias that uniquely identifies the SSL configurations
in the group. (String, optional)
- -sslConfigScopeName
- Specifies the scope that uniquely identifies the SSL configurations
in the group. (String, optional)
Examples
Batch
mode example usage:
- Using Jacl:
$AdminTask modifySSLConfigGroup {-name createSSLCfgGrp -direction inbound -certificateAlias alias2}
- Using Jython string:
AdminTask.modifySSLConfigGroup('[-name createSSLCfgGrp -direction inbound -certificateAlias alias2]')
- Using Jython list:
AdminTask.modifySSLConfigGroup(['-name', 'createSSLCfgGrp', '-direction', 'inbound', '-certificateAlias', 'alias2'])
Interactive mode example usage: