Next: , Previous: GPGSM GENKEY, Up: GPGSM Protocol

5.6.6 List available keys

To list the keys in the internal database or using an external key provider, the command:

       LISTKEYS  pattern

is used. To allow multiple patterns (which are ORed during the search) quoting is required: Spaces are to be translated into "+" or into "%20"; in turn this requires that the usual escape quoting rules are done.

       LISTSECRETKEYS pattern

Lists only the keys where a secret key is available.

The list commands are affected by the option

       OPTION list-mode=mode

where mode may be:

Use default (which is usually the same as 1).
List only the internal keys.
List only the external keys.
List internal and external keys.

Note that options are valid for the entire session.