summaryrefslogtreecommitdiff
path: root/src/share/mh/publish_key
blob: 988b4503ed18113fbb81ba6a9a9542d842ac842b (plain)
  1. # -*-shell-script-*-
  2. # This should be sourced by bash (though we welcome changes to make it POSIX sh compliant)
  3. # Monkeysphere host publish-key subcommand
  4. #
  5. # The monkeysphere scripts are written by:
  6. # Jameson Rollins <jrollins@finestructure.net>
  7. # Jamie McClelland <jm@mayfirst.org>
  8. # Daniel Kahn Gillmor <dkg@fifthhorseman.net>
  9. #
  10. # They are Copyright 2008-2009, and are all released under the GPL, version 3
  11. # or later.
  12. # publish server key to keyserver
  13. publish_key() {
  14. read -p "Really publish host key to $KEYSERVER? (y/N) " OK; OK=${OK:=N}
  15. if [ ${OK/y/Y} != 'Y' ] ; then
  16. failure "key not published."
  17. fi
  18. # find the key fingerprint
  19. fingerprint=$(fingerprint_host_key)
  20. # publish host key
  21. # FIXME: need to define how to do this
  22. #gpg_authentication "--keyserver $KEYSERVER --send-keys '0x${fingerprint}!'"
  23. echo "not published!!!"
  24. }