使用listPersonalCertificates 命令列示WebSphere Application Server特定密钥库中的个人证书

下面是详细的实例步骤。

[root@rhel79 work]# cd /opt/IBM/WebSphere/AppServer/profiles/AppSrv01/bin
[root@rhel79 bin]# ./wsadmin.sh -conntype SOAP -user wasadmin -password **********
WASX7209I: Connected to process "server1" on node rhel79Node01 using SOAP connector;  The type of process is: UnManagedProcess
WASX7031I: For help, enter: "print Help.help()"
wsadmin>AdminTask.listPersonalCertificates('-interactive')
List Personal Certificates

The list of personal certificates in a given keystore.

*Keystore Name (keyStoreName): NodeDefaultKeyStore
Keystore Scope Name (keyStoreScope): (cell):rhel79Node01Cell:(node):rhel79Node01

List Personal Certificates

F (Finish)
C (Cancel)

Select [F, C]: [F] 
WASX7278I: Generated command line: AdminTask.listPersonalCertificates('[-keyStoreName NodeDefaultKeyStore -keyStoreScope (cell):rhel79Node01Cell:(node):rhel79Node01 ]')
u'[[alias default] [version 3] [size 2048] [serialNumber 3562483458195] [issuedTo [CN=rhel79, OU=rhel79Node01Cell, OU=rhel79Node01, O=IBM, C=US]] [issuedBy [CN=rhel79, OU=Root Certificate, OU=rhel79Node01Cell, OU=rhel79Node01, O=IBM, C=US]] [fingerPrint 19:00:7B:33:84:DF:23:47:D4:C2:52:0B:C3:53:28:AB:8C:37:5C:2F] [signatureAlgorithm SHA256withRSA(1.2.840.113549.1.1.11)] [validity [Valid from Apr 30, 2025 to Apr 30, 2026.]] ]'
wsadmin>

详细语法参考

listPersonalCertificates

listPersonalCertificates 命令列示特定密钥库中的个人证书。

目标对象

无。

必需参数

-keyStoreName

唯一地标识密钥库配置对象的名称。 此字段的值不是密钥库文件的路径。 (字符串,必需)

可选参数

-keyStoreScope

密钥库的作用域名称。 要获取密钥库作用域的列表,请参阅包含在 ManagementScopeCommands 命令组中的 listManagementScopes 命令。 (字符串,可选)

示例输出

该命令返回密钥库中每份个人证书的属性列表。

示例

批处理方式示例用法:

  • 使用 Jython 字符串:
    AdminTask.listPersonalCertificates('-keyStoreName myKS')

  • 使用 Jython 列表:
    AdminTask.listPersonalCertificates(['-keyStoreName', 'myKS'])

交互方式示例用法:

  • 使用 Jython:
    AdminTask.listPersonalCertificates('-interactive')
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值