diff options
Diffstat (limited to 'src/share/mh/import_key')
-rw-r--r-- | src/share/mh/import_key | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/src/share/mh/import_key b/src/share/mh/import_key index 040b41c..7c11890 100644 --- a/src/share/mh/import_key +++ b/src/share/mh/import_key @@ -44,6 +44,21 @@ fi userID="ssh://${hostName}" +if [ "$PROMPT" = "true" ] ; then + cat <<EOF +The ssh key will be imported and an OpenPGP certificate for this host +will be generated with the following user ID: + $userID +EOF + read -p "Are you sure you would like to create certificate? [Y/n] " OK; OK=${OK:-Y} + if [ "${OK/y/Y}" != 'Y' ] ; then + failure "revoker not added." + fi +else + log debug "importing key without prompting." +fi + + # create host home mkdir -p "${MHDATADIR}" mkdir -p "${GNUPGHOME_HOST}" |