From a3db1c7d0d69b1506effb2c4eec4d091392e21de Mon Sep 17 00:00:00 2001 From: Johannes Löthberg Date: Sat, 16 May 2015 01:07:58 +0200 Subject: Add list-made-sigs Short script to list all keys in your keyring that you have signed --- list-made-sigs | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100755 list-made-sigs diff --git a/list-made-sigs b/list-made-sigs new file mode 100755 index 0000000..c70247f --- /dev/null +++ b/list-made-sigs @@ -0,0 +1,14 @@ +#!/usr/bin/bash +keys=() + +fingerprints=$(gpg --list-public-keys | grep 'Key fingerprint' | sed 's/\s\{6\}Key fingerprint = //') +while read -r fp; do + keys+=("$fp") +done <<<"$fingerprints" + +for key in "${keys[@]}"; do + gpg --list-sigs "$key" | grep 'sig' | sed 's/^sig .\s\{8\}//' | cut -d' ' -f1 | grep "$1" 2>&1 >/dev/null + if [[ $? == 0 ]]; then + printf "%s %s\n" "You signed:" "$key" + fi +done -- cgit v1.2.3-54-g00ecf