diff options
author | Micah Anderson <micah@riseup.net> | 2010-10-02 15:06:16 -0400 |
---|---|---|
committer | Micah Anderson <micah@riseup.net> | 2010-10-02 16:12:52 -0400 |
commit | e7df0bd6e46482b268017de102cbeea30665bd64 (patch) | |
tree | f2f597511aa2bb6b1830efb03b9b171155e1a81f /src/share/mh/publish_key | |
parent | ba9ec460b27dc24e99d9704aabd0cd35e9de08b6 (diff) |
add debugging to monkeysphere-host publish-key, closes: #2289
Diffstat (limited to 'src/share/mh/publish_key')
-rw-r--r-- | src/share/mh/publish_key | 3 |
1 files changed, 3 insertions, 0 deletions
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}!'" |