X-Git-Url: https://codewiz.org/gitweb?a=blobdiff_plain;f=src%2Fshare%2Fmh%2Frevoke_key;h=5460e51b182c05faaabd2180d4ef06814a678096;hb=adef51285ea488ecda7b0a77b142d99e022d9e10;hp=271432b279f4dadbb8c9b20fea741265d757ab3b;hpb=10888c602170f6157ff43a81bad920babdd6a59e;p=monkeysphere.git diff --git a/src/share/mh/revoke_key b/src/share/mh/revoke_key index 271432b..5460e51 100644 --- a/src/share/mh/revoke_key +++ b/src/share/mh/revoke_key @@ -33,7 +33,8 @@ Publishing this certificate will IMMEDIATELY and PERMANENTLY revoke your host key! EOF - read -p "Publish the certificate after generation? (y/n/Q) " publish + printf "Publish the certificate after generation? (y/n/Q) " >&2 + read publish if ! [ "${publish/y/Y}" = 'Y' -o "${publish/n/N}" = 'N' ] ; then failure "aborting at user request" @@ -53,9 +54,13 @@ EOF # certificate immediately, which we can help them do as well. if [ "$PROMPT" = 'false' ] ; then + # FIXME: allow the end user to choose something other than + # "key was compromised" (1) and to supply their own revocation + # string. + local revoke_commands="y 1 -Monkeysphere host key revocation (no prompting) $(date '+%F_%T') +Monkeysphere host key revocation (automated) $(date '+%F_%T%z') y @@ -83,7 +88,8 @@ y if [ "${publish/y/Y}" = 'Y' ] ; then printf "\n" >&2 - read -p "Really publish this cert to $KEYSERVER ? (Y/n) " really + printf "Really publish this cert to $KEYSERVER ? (Y/n) " >&2 + read really if [ "${really/n/N}" = 'N' ] ; then printf "Not publishing.\n" >&2 else