From e7df0bd6e46482b268017de102cbeea30665bd64 Mon Sep 17 00:00:00 2001 From: Micah Anderson Date: Sat, 2 Oct 2010 15:06:16 -0400 Subject: add debugging to monkeysphere-host publish-key, closes: #2289 --- src/share/mh/publish_key | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/share/mh/publish_key') diff --git a/src/share/mh/publish_key b/src/share/mh/publish_key index 52c8b86..c8da847 100644 --- a/src/share/mh/publish_key +++ b/src/share/mh/publish_key @@ -19,6 +19,7 @@ local keyID="$1" local GNUPGHOME if [ "$PROMPT" != "false" ] ; then + log debug "Because \$MONKEYSPHERE_PROMPT is set to $PROMPT, interactively confirm publishing key" printf "Really publish key '$keyID' to $KEYSERVER? (Y/n) " >&2 read OK; OK=${OK:=Y} if [ "${OK/y/Y}" != 'Y' ] ; then @@ -44,11 +45,13 @@ su_monkeysphere_user \ KEYSERVER_OPTIONS="" for anchorfile in "${SYSCONFIGDIR}/monkeysphere-host-x509-anchors.crt" "${SYSCONFIGDIR}/monkeysphere-x509-anchors.crt"; do if [ -z "$KEYSERVER_OPTIONS" ] && [ -r "$anchorfile" ] ; then + log debug "using trust anchor file: $anchorfile" KEYSERVER_OPTIONS="--keyserver-options 'ca-cert-file=$anchorfile'" fi done # publish key +log debug "publishing key with the following gpg command line and options:" su_monkeysphere_user \ "gpg --keyserver $KEYSERVER $KEYSERVER_OPTIONS --send-keys '0x${keyID}!'" -- cgit v1.2.3