Home GnuPG
Diffusion GnuPG c68dd2287237

gpg: Add --list-filter properties key_expires and key_expires_d.

Description

gpg: Add --list-filter properties key_expires and key_expires_d.

* g10/import.c (impex_filter_getval): Support new filter properties.

Here is how to list all subkeys expiring in the year 2061:

gpg --list-keys --list-filter

'select= sub/key_expires_d -gt 2061-01-01 \
         && sub/key_expires_d -lt 2061-12-31'

To list all primary key expirations, use the "pub/" prefix and to list
all expiration dates use no prefix.

Details

Provenance
wernerAuthored on Jun 9 2023, 4:16 PM
Parents
rG207c99567ced: dirmngr: Extend the AD_QUERY command.
Branches
Unknown
Tags
Unknown
Tasks
T6529: Allow the expiration time in --list-filter expressions