You can use the Jython or Jacl scripting languages to configure security with the wsadmin tool. The commands and parameters in the SSLConfigCommands group can be used to create and manage Secure Sockets Layer (SSL) configurations and properties. The SSLConfigCommands command group for the AdminTask object includes the following commands:
The createSSLConfig command creates an SSL configuration that is based on key store and trust store settings. You can use the SSL configuration settings to make the SSL connections.
Target object None.
Required parameters and return values
Examples
Batch mode example usage:
$AdminTask createSSLConfig {-alias testSSLCfg -clientKeyAlias key1 -serverKeyAlias key2 -trustStoreName trustKS –keyStoreName testKS -keyManagerName testKeyMgr}
AdminTask.createSSLConfig ('[-alias testSSLCfg -clientKeyAlias key1 -serverKeyAlias key2 -trustStoreName trustKS –keyStoreName testKS -keyManagerName testKeyMgr]')
AdminTask.createSSLConfig (['-alias', 'testSSLCfg', '-clientKeyAlias', 'key1', '-serverKeyAlias', 'key2', '-trustStoreName', 'trustKS', '–keyStoreName', 'testKS', '-keyManagerName', 'testKeyMgr'])
Interactive mode example usage:
$AdminTask createSSLConfig {-interactive}
AdminTask.createSSLConfig ('[-interactive]')
AdminTask.createSSLConfig (['-interactive'])
The createSSLConfigProperty command creates 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 and return values
Examples
Batch mode example usage:
$AdminTask createSSLConfigProperty {-sslConfigAliasName NodeDefaultSSLSettings -scopeName (cell):localhostNode01Cell:(node):localhostNode01 -propertyName test.property -propertyValue testValue}
AdminTask.createSSLConfigProperty ('[-sslConfigAliasName NodeDefaultSSLSettings -scopeName (cell):localhostNode01Cell:(node):localhostNode01 -propertyName test.property -propertyValue testValue]')
AdminTask.createSSLConfigProperty (['-sslConfigAliasName', 'NodeDefaultSSLSettings', '-scopeName', '(cell):localhostNode01Cell:(node):localhostNode01', '-propertyName', 'test.property', '-propertyValue', 'testValue'])
Interactive mode example usage:
$AdminTask createSSLConfigProperty {-interactive}
AdminTask.createSSLConfigProperty ('[-interactive]')
AdminTask.createSSLConfigProperty (['-interactive'])
The deleteSSLConfig command deletes the SSL configuration object that you specify from the configuration.
Target object None.
Required parameters and return values
Examples
Batch mode example usage:
$AdminTask deleteSSLConfig {-alias NodeDefaultSSLSettings -scopeName (cell):localhostNode01Cell:(node):localhostNode01}
AdminTask.deleteSSLConfig ('[-alias NodeDefaultSSLSettings -scopeName (cell):localhostNode01Cell:(node):localhostNode01]')
AdminTask.deleteSSLConfig (['-alias', 'NodeDefaultSSLSettings', '-scopeName', '(cell):localhostNode01Cell:(node):localhostNode01'])
Interactive mode example usage:
$AdminTask deleteSSLConfig {-interactive}
AdminTask.deleteSSLConfig ('[-interactive]')
AdminTask.deleteSSLConfig (['-interactive'])
The getSSLConfig command obtains information about an SSL configuration and displays the settings.
Target object None.
Required parameters and return values
Examples
Batch mode example usage:
$AdminTask getSSLConfig {-alias NodeDefaultSSLSettings -scopeName (cell):localhostNode01Cell:(node):localhostNode01 }
AdminTask.getSSLConfig ('[-alias NodeDefaultSSLSettings -scopeName (cell):localhostNode01Cell:(node):localhostNode01]')
AdminTask.getSSLConfig (['-alias', 'NodeDefaultSSLSettings', '-scopeName', '(cell):localhostNode01Cell:(node):localhostNode01'])
Interactive mode example usage:
$AdminTask getSSLConfig {-interactive}
AdminTask.getSSLConfig ('[-interactive]')
AdminTask.getSSLConfig (['-interactive'])
The getSSLConfigProperties command obtains information about SSL configuration properties.
Target object None.
Required parameters and return values
Examples
Batch mode example usage:
$AdminTask getSSLConfigProperties {-sslConfigAliasName NodeDefaultSSLSettings -scopeName (cell):localhostNode01Cell:(node):localhostNode01}
AdminTask.getSSLConfigProperties ('[-sslConfigAliasName NodeDefaultSSLSettings -scopeName (cell):localhostNode01Cell:(node):localhostNode01]')
AdminTask.getSSLConfigProperties (['-sslConfigAliasName', 'NodeDefaultSSLSettings', '-scopeName', '(cell):localhostNode01Cell:(node):localhostNode01'])
Interactive mode example usage:
$AdminTask getSSLConfigProperties {-interactive}
AdminTask.getSSLConfigProperties ('[-interactive]')
AdminTask.getSSLConfigProperties (['-interactive'])
The listSSLCiphers command lists the SSL ciphers.
Target object None.
Required parameters and return values
Examples
Batch mode example usage:
$AdminTask listSSLCiphers {-sslConfigAliasName testSSLCfg -securityLevel HIGH}
AdminTask.listSSLCiphers ('[-sslConfigAliasName testSSLCfg -securityLevel HIGH]')
AdminTask.listSSLCiphers (['-sslConfigAliasName', 'testSSLCfg', '-securityLevel', 'HIGH'])
Interactive mode example usage:
$AdminTask listSSLCiphers {-interactive}
AdminTask.listSSLCiphers ('[-interactive]')
AdminTask.listSSLCiphers (['-interactive'])
The listSSLConfig command lists the defined SSL configurations within a management scope.
Target object None.
Required parameters and return values
Examples
Batch mode example usage:
$AdminTask listSSLConfig {-scopeName (cell): localhostNode01Cell:(node):localhostNode01 -displayObjectName true}
AdminTask.listSSLConfig('[-scopeName (cell):localhostNode01Cell:(node):localhostNode01 -displayObjectName true]')
AdminTask.listSSLConfig(['-scopeName', '(cell):localhostNode01Cell:(node):localhostNode01', '-displayObjectName', 'true'])
Interactive mode example usage:
$AdminTask listSSLConfig {-interactive}
AdminTask.listSSLConfig('[-interactive]')
AdminTask.listSSLConfig(['-interactive'])
The listSSLConfigProperties command lists the properties for a SSL configuration.
Target object None.
Required parameters and return values
Examples
Batch mode example usage:
$AdminTask listSSLConfigProperty {-alias No deDefaultSSLSettings -scopeName (cell):localhostNode01Cell:(node):localhostNode01 -displayObjectName true}
AdminTask.listSSLConfigProperty('[-alias No deDefaultSSLSettings -scopeName (cell):localhostNode01Cell:(node):localhostNode01 -displayObjectName true]')
AdminTask.listSSLConfigProperty(['-alias', 'No', 'deDefaultSSLSettings', '-scopeName', '(cell):localhostNode01Cell:(node):localhostNode01', '-displayObjectName', 'true'])
Interactive mode example usage:
$AdminTask listSSLConfigProperties {-interactive}
AdminTask.listSSLConfigProperties('[-interactive]')
AdminTask.listSSLConfigProperties(['-interactive'])
The modifySSLConfig command modifies the settings of an existing SSL configuration.
Target object None.
Required parameters and return values
Examples
Batch mode example usage:
$AdminTask modifySSLConfig {-alias testSSLCfg -clientKeyAlias tstKey1 -serverKeyAlias tstKey2 -securityLevel LOW}
AdminTask.modifySSLConfig ('[-alias testSSLCfg -clientKeyAlias tstKey1 -serverKeyAlias tstKey2 -securityLevel LOW]')
AdminTask.modifySSLConfig (['-alias', 'testSSLCfg', '-clientKeyAlias', 'tstKey1', '-serverKeyAlias', 'tstKey2', '-securityLevel', 'LOW'])
Interactive mode example usage:
$AdminTask modifySSLConfig {-interactive}
AdminTask.modifySSLConfig ('[-interactive]')
AdminTask.modifySSLConfig (['-interactive'])