summaryrefslogtreecommitdiff
path: root/src/subcommands/ma/list-certifiers
blob: 789d553225789716a72c01308a87eb2c5f112b92 (plain)
  1. #!/usr/bin/env bash
  2. # Monkeysphere authentication list-certifiers subcommand
  3. #
  4. # The monkeysphere scripts are written by:
  5. # Jameson Rollins <jrollins@fifthhorseman.net>
  6. # Jamie McClelland <jm@mayfirst.org>
  7. # Daniel Kahn Gillmor <dkg@fifthhorseman.net>
  8. #
  9. # They are Copyright 2008, and are all released under the GPL, version 3
  10. # or later.
  11. # list the host certifiers
  12. local keys
  13. local key
  14. # find trusted keys in authentication keychain
  15. keys=$(gpg_authentication "--no-options --list-options show-uid-validity --keyring ${GNUPGHOME_AUTHENTICATION}/pubring.gpg --list-keys --with-colons --fingerprint" | \
  16. grep ^pub: | cut -d: -f2,5 | egrep '^(u|f):' | cut -d: -f2)
  17. # output keys
  18. for key in $keys ; do
  19. gpg_authentication "--no-options --list-options show-uid-validity --keyring ${GNUPGHOME_AUTHENTICATION}/pubring.gpg --list-key --fingerprint $key"
  20. done