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.


Assuming 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.

|improve this answer|||||

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.