To list the keys in the internal database or using an external key provider, the command:
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.
Lists only the keys where a secret key is available.
The list commands commands are affected by the option
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.