From d263f30d4fe03d1976ecd899ba2482cb870c2a4d Mon Sep 17 00:00:00 2001 From: Jameson Graef Rollins Date: Sat, 21 Jun 2008 20:32:33 -0400 Subject: Improved gen-key function for server. Update TODO. --- src/seckey2sshagent | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'src/seckey2sshagent') diff --git a/src/seckey2sshagent b/src/seckey2sshagent index aff323f..1266db5 100755 --- a/src/seckey2sshagent +++ b/src/seckey2sshagent @@ -16,9 +16,9 @@ cleanup() { - echo -n "removing temp gpg home... " + echo -n "removing temp gpg home... " 1>&2 rm -rf $FOO - echo "done." + echo "done." 1>&2 } trap cleanup EXIT @@ -46,6 +46,7 @@ gpg --export-secret-key $GPGID | GNUPGHOME="$FOO" gpg --import GNUPGHOME="$FOO" gpg --edit-key $GPGID -ln -s /dev/stdin "$FOO"/monkeysphere-key +ln -s /dev/stdin "$FOO"/openpgp -GNUPGHOME="$FOO" gpg --export-secret-key $GPGID | openpgp2ssh $GPGID | ssh-add -c /dev/stdin +GNUPGHOME="$FOO" gpg --export-secret-key $GPGID | \ + openpgp2ssh $GPGID | ssh-add -c "$FOO"/openpgp -- cgit v1.2.3