6

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 Answer 1

7

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.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .