summaryrefslogtreecommitdiff
path: root/bin/pgp-list-keyids
diff options
context:
space:
mode:
authorLuke Shumaker <lukeshu@sbcglobal.net>2016-06-15 16:31:13 -0400
committerLuke Shumaker <lukeshu@sbcglobal.net>2016-06-15 16:31:13 -0400
commit1a435c0f4b41904025d0f263734cb9aea6a03b13 (patch)
tree96ce607542c806c4a99c0463c3fea534e4c8e424 /bin/pgp-list-keyids
parent043466d94da837fefb95cda8ecab44b03049890d (diff)
parente4b972f3c82dbe4b5e363e48ed01d97cc060a2c0 (diff)
Merge remote-tracking branch 'hackers/parabola-hackers'
# Conflicts: # .gitignore
Diffstat (limited to 'bin/pgp-list-keyids')
-rwxr-xr-xbin/pgp-list-keyids21
1 files changed, 21 insertions, 0 deletions
diff --git a/bin/pgp-list-keyids b/bin/pgp-list-keyids
new file mode 100755
index 0000000..9682b1a
--- /dev/null
+++ b/bin/pgp-list-keyids
@@ -0,0 +1,21 @@
+#!/usr/bin/env ruby
+# Usage: pgp-list-keyids
+
+load "#{File.dirname(__FILE__)}/common.rb"
+
+load_all_users.each do |uid,user|
+ if user["groups"]
+ if user["groups"].include?("keyring-trusted")
+ puts "trusted/#{user["username"]} #{user["pgp_keyid"]}"
+ elsif user["groups"].include?("keyring-secondary")
+ puts "secondary/#{user["username"]} #{user["pgp_keyid"]}"
+ elsif user["pgp_keyid"]
+ #puts "revoked/#{user["username"]} #{user["pgp_keyid"]}"
+ end
+ end
+ if user["pgp_revoked_keyids"]
+ user["pgp_revoked_keyids"].each do |keyid|
+ puts "revoked/#{user["username"]} #{keyid}"
+ end
+ end
+end