projects
/
monkeysphere.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
deff162
)
testing: setting up the authorized_keys for testuser.
author
Daniel Kahn Gillmor
<dkg@fifthhorseman.net>
Sun, 26 Oct 2008 06:37:18 +0000
(
02:37
-0400)
committer
Daniel Kahn Gillmor
<dkg@fifthhorseman.net>
Sun, 26 Oct 2008 06:37:18 +0000
(
02:37
-0400)
tests/basic
patch
|
blob
|
history
diff --git
a/tests/basic
b/tests/basic
index 832b33a69836a5ba5410ed1b3a8d93a8468c9f93..3ef5c6c51695b2edb0019eb11dcfbd643ef5794c 100755
(executable)
--- a/
tests/basic
+++ b/
tests/basic
@@
-90,6
+90,7
@@
EOF
# setup monkeysphere temp gnupghome directories
mkdir -p -m 750 "$MONKEYSPHERE_SYSDATADIR"/gnupg-host
mkdir -p -m 700 "$MONKEYSPHERE_SYSDATADIR"/gnupg-authentication
# setup monkeysphere temp gnupghome directories
mkdir -p -m 750 "$MONKEYSPHERE_SYSDATADIR"/gnupg-host
mkdir -p -m 700 "$MONKEYSPHERE_SYSDATADIR"/gnupg-authentication
+mkdir -p -m 700 "$MONKEYSPHERE_SYSDATADIR"/authorized_keys
cat <<EOF > "$MONKEYSPHERE_SYSDATADIR"/gnupg-authentication/gpg.conf
primary-keyring ${MONKEYSPHERE_SYSDATADIR}/gnupg-authentication/pubring.gpg
keyring ${MONKEYSPHERE_SYSDATADIR}/gnupg-host/pubring.gpg
cat <<EOF > "$MONKEYSPHERE_SYSDATADIR"/gnupg-authentication/gpg.conf
primary-keyring ${MONKEYSPHERE_SYSDATADIR}/gnupg-authentication/pubring.gpg
keyring ${MONKEYSPHERE_SYSDATADIR}/gnupg-host/pubring.gpg
@@
-126,8
+127,11
@@
HostKey ${MONKEYSPHERE_SYSDATADIR}/ssh_host_rsa_key
AuthorizedKeysFile ${MONKEYSPHERE_SYSDATADIR}/authorized_keys/%u
EOF
AuthorizedKeysFile ${MONKEYSPHERE_SYSDATADIR}/authorized_keys/%u
EOF
-# FIXME: teach the "server" about the testuser's key, and update the
-# fake authorized_keys file for testuser!
+# teach the "server" about the testuser's key
+GNUPGHOME="$TEMPDIR"/testuser/.gnupg gpg --export testuser | \
+ monkeysphere-server gpg-authentication-cmd --import
+
+monkeysphere-server update-users testuser
# launch test sshd with the new host key.
echo "### starting sshd..."
# launch test sshd with the new host key.
echo "### starting sshd..."