1

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.

1

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.

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.