From: Daniel Kahn Gillmor Date: Sun, 1 Feb 2009 07:27:58 +0000 (-0500) Subject: removed some unnecessary setup from the basic test, pulling the random string from... X-Git-Tag: monkeysphere_0.23~147 X-Git-Url: https://codewiz.org/gitweb?a=commitdiff_plain;h=6b09adf78d79ea76849a43f4af4335a7a89b10c7;p=monkeysphere.git removed some unnecessary setup from the basic test, pulling the random string from /dev/urandom; generating the authentication trust core key at 2048 bits --- diff --git a/src/share/ma/setup b/src/share/ma/setup index a829a98..944bb4d 100644 --- a/src/share/ma/setup +++ b/src/share/ma/setup @@ -43,11 +43,11 @@ 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 | base64)) + local CORE_UID=$(printf "Monkeysphere authentication trust core UID (random string: %s)" $(head -c21 > "$TEMPDIR"/monkeysphere-authentication.conf AUTHORIZED_USER_IDS="$MONKEYSPHERE_HOME/authentication/authorized_user_ids" EOF -cat < "$MONKEYSPHERE_SYSDATADIR"/authentication/sphere/gpg.conf -primary-keyring ${MONKEYSPHERE_SYSDATADIR}/authentication/sphere/pubring.gpg -keyring ${MONKEYSPHERE_SYSDATADIR}/authentication/core/pubring.gpg -EOF # setup server authentication echo "### setting up server authentication..." monkeysphere-authentication setup +get_gpg_prng_arg >> "$MONKEYSPHERE_SYSDATADIR"/authentication/sphere/gpg.conf # add admin as identity certifier for testhost echo "### adding admin as certifier..."