Forrest logo
back to the gpg tool

gpg:ai:15453

This command will list all primary keys along with their expiration dates
$ gpg --list-keys --with-colons --fixed-list-mode | grep '^pub' | cut -d: -f1 | xargs -n1 gpg --list-keys --with-colons --fixed-list-mode | grep '^created' | cut -d: -f10 | xargs -n2 sh -c 'echo Expiration: $1; gpg --check-sigs $2'
try on your machine

This command will list all primary keys along with their expiration dates

This explanation was created by an AI. In most cases those are correct. But please always be careful and never run a command you are not sure if it is safe.

Questions that are answered by this command:

  • show expiration of all primary keys?
back to the gpg tool