I would like to query gpg to list only the keys that I own on my local keyring. How is this done? I can see all keys by doing
gpg list-keys
-- that shows all the keys. I want just my keys.
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. It only takes a minute to sign up.
Sign up to join this communityAssuming you have private keys on your machine only for your keys, you could do with listing private keys with
gpg --list-secret-key
This will show you only keys that have a private counterparts.
Otherwise, you can list either all or single key.