diff options
Diffstat (limited to 'examples')
-rwxr-xr-x | examples/samizdat-init-key.sh | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/examples/samizdat-init-key.sh b/examples/samizdat-init-key.sh index 0bd7a32..1fde8d1 100755 --- a/examples/samizdat-init-key.sh +++ b/examples/samizdat-init-key.sh | |||
@@ -1,4 +1,5 @@ | |||
1 | #!/bin/sh | 1 | #!/bin/sh |
2 | export GNUPGHOME=$ROOT/gpg/gnupghome | ||
2 | 3 | ||
3 | pem_to_onion_url() | 4 | pem_to_onion_url() |
4 | { | 5 | { |
@@ -37,12 +38,12 @@ onion_url=$(pem_to_onion_url "$torkey") || exit | |||
37 | echo "$passphrase" | \ | 38 | echo "$passphrase" | \ |
38 | kiki --keypairs \ | 39 | kiki --keypairs \ |
39 | strongswan="$ROOT"/etc/ipsec.d/private/"$onion_url".pem{"$ssl"} \ | 40 | strongswan="$ROOT"/etc/ipsec.d/private/"$onion_url".pem{"$ssl"} \ |
40 | ssh-client="$ROOT$HOME"/.ssh/id_rsa{"$ssh"} \ | 41 | ssh-client="$ROOT"/root/.ssh/id_rsa{"$ssh"} \ |
41 | ssh-host="$ROOT"/etc/ssh/ssh_host_rsa_key{"$ssh"} \ | 42 | ssh-host="$ROOT"/etc/ssh/ssh_host_rsa_key{"$ssh"} \ |
42 | --passphrase-fd 0 || exit | 43 | --passphrase-fd 0 || exit |
43 | 44 | ||
44 | # Finally, export public keys if they do not exist. | 45 | # Finally, export public keys if they do not exist. |
45 | makepub ssh-client "$ROOT$HOME/.ssh/id_rsa.pub" | 46 | makepub ssh-client "$ROOT/root/.ssh/id_rsa.pub" |
46 | makepub ssh-host "$ROOT/etc/ssh/ssh_host_rsa_key.pub" | 47 | makepub ssh-host "$ROOT/etc/ssh/ssh_host_rsa_key.pub" |
47 | 48 | ||
48 | # TODO: makepub can be made obsolete by implementing something like this: | 49 | # TODO: makepub can be made obsolete by implementing something like this: |