
Допустим, я настроил или определил группу ключей или несколько групп ключей. Как мне составить список этих групп? Как мне определить, какие ключи являются членами этих групп?
решение1
gpg --with-colons --list-config group
ОтИспользование GNU Privacy Guard: эзотерические параметры GPG:
--list-config
Отображение различных внутренних параметров конфигурации GnuPG. Эта опция предназначена для внешних программ, которые вызывают GnuPG для выполнения задач, и поэтому обычно не полезна.
doc/DETAILS
Подробности о том, какие элементы конфигурации могут быть перечислены, см. в файле в исходном дистрибутиве.--list-config
можно использовать только с--with-colons
set.
Из doc/DETAILS
файла висточник GPG 1.4.22:
Format of the "--list-config" output
====================================
--list-config outputs information about the GnuPG configuration for
the benefit of frontends or other programs that call GnuPG. There are
several list-config items, all colon delimited like the rest of the
--with-colons output. The first field is always "cfg" to indicate
configuration information. The second field is one of (with
examples):
...
group: the third field contains the name of the group, and the fourth
field contains the values that the group expands to, separated
by semicolons.
For example, a group of:
group mynames = paige 0x12345678 joe patti
would result in:
cfg:group:mynames:patti;joe;0x12345678;paige