Skip to main content

List certificates

To list all certificates in your account:

smctl certificate list <flag>

or

smctl cert ls <flag>
Tabella 1. Flags for listing certificates

Shortcut

Flag

Description

--cert-hash-alg string

Specify if you only want to list the certificates with the hash algorithm type: SHA1, SHA256, SHA384 or SHA512. Default is SHA1. 

Format:

--cert-hash-alg="<value>"

--cert-hash-encoding string

Specify if you want the certificate hash encoding type to be HEX or BASE64. Default is HEX. 

Format:

--cert-hash-encoding="<value>"

--filter stringToString

The supported fields are: id, alias, certificate_status, and keypair_id. The default field is []. 

Format:

--filter="<value>"

--account-id string

Account ID for the user. 

Format:

--account-id="<value>"

--page int

Page number. Default is -1, which lists all pages.

--size int

Page size. Default page size is 100.

-h

--help

Help for list certificates command.


Example

Description: List all the certificates and display the fingerprint in SHA-1 hash.

Command:

smctl certificate list --cert-hash-alg=<algorithm>

Subcommand:

smctl certificate ls --cert-hash-alg=SHA1