Bootstrap FreeKB - IBM WebSphere - Display SSL Configuration using wsadmin
IBM WebSphere - Display SSL Configuration using wsadmin

Updated:   |  IBM WebSphere articles

If you are not familiar with wsadmin.sh (Linux) / wsadmin.bat (Windows), check out our Getting Started article.

The following wsadmin AdminConfig command can be used to list each SSL Configuration in a cell. This example uses the jython language.

AdminTask.listSSLConfigs()

 

Which should return something like this.

alias: CellDefaultSSLSettings managementScope: (cell):myCell01 
alias: XDADefaultSSLSettings managementScope: (cell):myCell01
alias: NodeDefaultSSLSettings managementScope: (cell):myCell01

 

Then getSSLConfig can be used to display the settings of an SSL Configuration.

AdminTask.getSSLConfig('[-alias NodeDefaultSSLSettings -scopeName (cell):myCell01]')

 

Or like this.

AdminTask.getSSLConfig(['-alias', 'NodeDefaultSSLSettings', '-scopeName', '(cell):myCell01'])

 

Something like this should be returned.

[
 [alias NodeDefaultSSLSettings]
 [type JSSE]
 [setting 
  [
   [
    [keyFileName ]
    [keyFilePassword ]
    [keyFileFormat JKS]
    [clientKeyAlias ]
    [serverKeyAlias ]
    [trustFileName ]
    [trustFilePassword ]
    [trustFileFormat JKS]
    [clientAuthentication false]
    [securityLevel HIGH]
    [enableCryptoHardwareSupport false]
    [enabledCiphers ]
    [jsseProvider ]
    [clientAuthenticationSupported false]
    [sslProtocol SSL_TLSv2]
    [cryptoHardware ]
    [properties [
     [
      [name com.ibm.ssl.changed]
      [value 0]
      [description ]
      [required false]
      [validationExpression ]
      [_Websphere_Config_Data_Id cells/myCell01|security.xml#Property_1455135140659]
      [_Websphere_Config_Data_Type Property]
     ]
    ]
   ]
   [keyStore NodeDefaultKeyStore(cells/myCell01|security.xml#KeyStore_1455135140657)]
   [trustStore CellDefaultTrustStore(cells/myCell01|security.xml#KeyStore_2)]
   [trustManager IbmX509(cells/myCell01|security.xml#TrustManager_1)]
   [keyManager IbmX509(cells/myCell01|security.xml#KeyManager_1)]
   [_Websphere_Config_Data_Id cells/myCell01|security.xml#SecureSocketLayer_1455135140657] 
   [_Websphere_Config_Data_Type SecureSocketLayer] ]
  ]
 ]
 [managementScope (cells/myCell01|security.xml#ManagementScope_1)]
 [_Websphere_Config_Data_Id cells/myCell01|security.xml#SSLConfig_1455135140657] 
 [_Websphere_Config_Data_Type SSLConfig]
 [_Websphere_Config_Data_Version ]
]

 




Did you find this article helpful?

If so, consider buying me a coffee over at Buy Me A Coffee



Comments


Add a Comment


Please enter 9eb8d5 in the box below so that we can be sure you are a human.