sign-key 310 B

12345678910111213141516171819202122232425
  1. #!/bin/zsh -f
  2. if [[ $# -eq 0]] ; then
  3. echo "sign-key KEYID"
  4. exit
  5. fi
  6. KEY=$1
  7. shift
  8. echo "Receiving Key ${KEY}"
  9. gpg --recv-keys ${KEY}
  10. echo
  11. echo
  12. echo "Fingerprint of key ${KEY} is:"
  13. gpg --fingerprint
  14. echo
  15. echo
  16. echo "Proceed to sign key"
  17. gpg --sign-key --ask-cert-level ${KEY}
  18. gpg --send-key ${KEY}