summaryrefslogtreecommitdiff
path: root/src/share/ma/setup
diff options
context:
space:
mode:
authorMatt Goins <mjgoins@openflows.com>2009-04-08 00:43:05 -0400
committerMatt Goins <mjgoins@openflows.com>2009-04-08 00:43:05 -0400
commitdfd67a14003fbfb4b1ba2269e7d47f4d0c44fcf8 (patch)
tree3372902f39b0995a39b62851671fe33e4ceeb56e /src/share/ma/setup
parentf77a5d79b4a9b4b44cb3786237931458265e49ed (diff)
parentee3872232ffc40ab0ae7ea823059806f839f2700 (diff)
Merge commit 'dkg/master'
Diffstat (limited to 'src/share/ma/setup')
-rw-r--r--src/share/ma/setup4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/share/ma/setup b/src/share/ma/setup
index b453f3c..4c87009 100644
--- a/src/share/ma/setup
+++ b/src/share/ma/setup
@@ -57,9 +57,9 @@ EOF
if [ -z "$CORE_FPR" ] ; then
log info "setting up Monkeysphere authentication trust core..."
- local CORE_UID=$(printf "Monkeysphere authentication trust core UID (random string: %s)" $(head -c21 </dev/urandom | perl -MMIME::Base64 -ne 'print encode_base64($_)'))
+ local CORE_UID=$(printf "Monkeysphere authentication trust core UID (random string: %s)" $(dd if=/dev/urandom bs=21 count=1 | perl -MMIME::Base64 -ne 'print encode_base64($_)'))
- log debug "generating monkeysphere authentication trust core key ($CORE_KEYLENGTH bits)..."
+ printf "generating monkeysphere authentication trust core key:\nsize: %d bits\nuid: '%s'\n" "$CORE_KEYLENGTH" "$CORE_UID" | log debug
PEM2OPENPGP_USAGE_FLAGS=certify \
PEM2OPENPGP_NEWKEY=$CORE_KEYLENGTH pem2openpgp "$CORE_UID" \
| gpg_core --import \