使用listKeyStores 命令列示WebSphere Application Server特定作用域的密钥库

[root@rhel79 work]# cd /opt/IBM/WebSphere/AppServer/profiles/AppSrv01/bin

[root@rhel79 bin]# ./wsadmin.sh -conntype SOAP -user wasadmin -password ********

wsadmin>AdminTask.listKeyStores()

u'NodeDefaultKeyStore(cells/rhel79Node01Cell|security.xml#KeyStore_rhel79Node01_1)\nNodeDefaultTrustStore(cells/rhel79Node01Cell|security.xml#KeyStore_rhel79Node01_2)\nN

odeLTPAKeys(cells/rhel79Node01Cell|security.xml#KeyStore_rhel79Node01_3)\nNodeDefaultRootStore(cells/rhel79Node01Cell|security.xml#KeyStore_rhel79Node01_4)\nNodeDefaultD

eletedStore(cells/rhel79Node01Cell|security.xml#KeyStore_rhel79Node01_5)\nNodeDefaultSignersStore(cells/rhel79Node01Cell|security.xml#KeyStore_rhel79Node01_6)\nNodeRSATo

kenKeyStore(cells/rhel79Node01Cell|security.xml#KeyStore_rhel79Node01_7)\nNodeRSATokenTrustStore(cells/rhel79Node01Cell|security.xml#KeyStore_rhel79Node01_8)\nNodeRSATok

enRootStore(cells/rhel79Node01Cell|security.xml#KeyStore_rhel79Node01_9)'

wsadmin>

命令参考

listKeyStores

listKeyStores 命令列示特定作用域的密钥库。

必需参数

无。

可选参数

-scopeName

指定唯一标识管理范围的名称,例如:(cell):localhostNode01Cell. (字符串,可选)

-all

将此参数的值指定为true列出所有密钥库。 此参数覆盖 scopeName 参数。 缺省值为false. (布尔值,可选)

-keyStoreUsage

指定相关密钥库的用法。 指定SSLKeys,KeySetKeys,RootKeys,DeletedKeys,DefaultSigners,或RSATokenKeys. (字符串,可选)

示例

批处理方式示例用法:

  • 使用 Jacl:
    $AdminTask listKeyStores
  • 使用 Jython:
    AdminTask.listKeyStores()

交互方式示例用法:

  • 使用 Jacl:
    $AdminTask listKeyStores {-interactive}
  • 使用 Jython:
    AdminTask.listKeyStores('-interactive')

你可能感兴趣的:(IBM,WAS)