Reputation: 3838
This is the output:
$ gpg --list-keys
/home/peng/.gnupg/pubring.kbx
-----------------------------
pub rsa3072 2021-11-11 [SC] [expires: 2023-11-11]
A8DD0A5173596CE87F613E42E1D4CD2CE69ED220
uid [ultimate] tribbloid <[email protected]>
sub rsa3072 2021-11-11 [E] [expires: 2023-11-11]
Which part of it is the ID?
Upvotes: 0
Views: 1676
Reputation: 4032
i came across this today, trying to figure this out myself as i do not generally mess around with gpg and it's utilities on a day to day basis. as i generally work with gpg and it's keys once or twice when setting them up then it becomes something i forget about. 👴🏼
all that said, i'm like 99% sure the KEY-ID
is the last 8 digits of that public key ie. in your case it would be
E69ED220
there are ways you can list the key-id
/ user-id
for gpg keys. a couple internet searches later the below link gives decent answer as well.
https://unix.stackexchange.com/a/577307/33002
Upvotes: 1