X-Git-Url: https://codewiz.org/gitweb?a=blobdiff_plain;f=src%2Fsubcommands%2Fmh%2Fextend-key;h=ccbaf0e0f871cbb416ed20a3db0faf39d681cfbd;hb=e4c566d5a1dd25d87d07dac1459a395321b9a5ef;hp=755fe13f19e74cb86c784213c456977ae933ca01;hpb=b7e17887ac20bc5916d830f5282b07f4c0360c2a;p=monkeysphere.git diff --git a/src/subcommands/mh/extend-key b/src/subcommands/mh/extend-key old mode 100755 new mode 100644 index 755fe13..ccbaf0e --- a/src/subcommands/mh/extend-key +++ b/src/subcommands/mh/extend-key @@ -1,17 +1,20 @@ -#!/usr/bin/env bash +# -*-shell-script-*- +# This should be sourced by bash (though we welcome changes to make it POSIX sh compliant) # Monkeysphere host extend-key subcommand # # The monkeysphere scripts are written by: -# Jameson Rollins +# Jameson Rollins # Jamie McClelland # Daniel Kahn Gillmor # -# They are Copyright 2008, and are all released under the GPL, version 3 -# or later. +# They are Copyright 2008-2009, and are all released under the GPL, +# version 3 or later. # extend the lifetime of a host key: +extend_key() { + local fpr=$(fingerprint_server_key) local extendTo="$1" @@ -27,3 +30,5 @@ EOF echo echo "NOTE: Host key expiration date adjusted, but not yet published." echo "Run '$PGRM publish-key' to publish the new expiration date." + +}