2 # This should be sourced by bash (though we welcome changes to make it POSIX sh compliant)
4 # Monkeysphere host extend-key subcommand
6 # The monkeysphere scripts are written by:
7 # Jameson Rollins <jrollins@finestructure.net>
8 # Jamie McClelland <jm@mayfirst.org>
9 # Daniel Kahn Gillmor <dkg@fifthhorseman.net>
11 # They are Copyright 2008-2009, and are all released under the GPL,
14 # extend the lifetime of a host key:
18 local fpr=$(fingerprint_server_key)
21 # get the new expiration date
22 extendTo=$(get_gpg_expiration "$extendTo")
24 gpg_host --quiet --command-fd 0 --edit-key "$fpr" <<EOF
31 echo "NOTE: Host key expiration date adjusted, but not yet published."
32 echo "Run '$PGRM publish-key' to publish the new expiration date."