Description
Searches for certificates in the ICA.
Important - On Multi-Domain Server, you must run this command in the context of the relevant Domain Management Server.
Syntax
cpca_client [-d] search <String> [-where {dn | comment | serial | device_type | device_id | device_name}] [-kind {SIC | IKE | User | LDAP}] [-stat {Pending | Valid | Revoked | Expired | Renewed}] [-max <Maximal Number of Results>] [-showfp {y | n}] |
Parameters
Parameter |
Description |
---|---|
|
Runs the command in debug mode. Use only if you troubleshoot the command itself. |
|
Specifies the text to search in the certificates. You can enter only one text string that does not contain spaces. |
|
Optional. Specifies the certificate's field, in which to search for the string:
The default is to search in all fields. |
|
Optional. Specifies the certificate kind to search. You can enter multiple values in this format: The default is to search for all kinds. |
|
Optional. Specifies the certificate status to search. You can enter multiple values in this format: The default is to search for all statuses. |
|
Optional. Specifies the maximal number of results to show.
|
|
Optional. Specifies whether to show the certificate's fingerprint and thumbprint:
|
Example 1
[Expert@MGMT:0]# cpca_client search samplecompany -where comment -kind SIC LDAP -stat Pending Valid Renewed |
Example 2
[Expert@MGMT:0]# cpca_client search 192.168.3.51 -where dn Operation succeeded. rc=0. 1 certs found.
Subject = CN=192.168.3.51,O=MGMT.5p72vp Status = Valid Kind = SIC Serial = 73455 DP = 0 Not_Before: Sat Apr 7 19:40:12 2018 Not_After: Fri Apr 7 19:40:12 2023 Fingerprint = XXX XXX XXX XXX XXX XXX XXX XXX XXX XXX XXX XXX Thumbprint = xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx [Expert@MGMT:0]# |
Example 3
[Expert@MGMT:0]# cpca_client search 192.168.3.51 -where dn -showfp n Operation succeeded. rc=0. 1 certs found.
Subject = CN=192.168.3.51,O=MGMT.5p72vp Status = Valid Kind = SIC Serial = 73455 DP = 0 Not_Before: Sat Apr 7 19:40:12 2018 Not_After: Fri Apr 7 19:40:12 2023 [Expert@MGMT:0]# |