summaryrefslogtreecommitdiff
path: root/lib/Kiki.hs
diff options
context:
space:
mode:
authorjoe <joe@jerkface.net>2016-04-26 18:15:53 -0400
committerjoe <joe@jerkface.net>2016-04-26 18:15:53 -0400
commiteb36b3920fd768fdc59d8fdfa43a252aeccc76e7 (patch)
treee3cc9cc8ffae44c614130bbde2ae5a21c41de5f3 /lib/Kiki.hs
parent058e3e2293ed7ced0f77fc6f6a75d73ee5610042 (diff)
"init" now exports secret tor key.
Diffstat (limited to 'lib/Kiki.hs')
-rw-r--r--lib/Kiki.hs4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/Kiki.hs b/lib/Kiki.hs
index 8a1878b..be15224 100644
--- a/lib/Kiki.hs
+++ b/lib/Kiki.hs
@@ -271,6 +271,10 @@ refreshCache rt rootdir = do
271 (mkpath "ssh_host_rsa_key") 271 (mkpath "ssh_host_rsa_key")
272 "missing ssh host key?" 272 "missing ssh host key?"
273 273
274 writeSecret "tor"
275 (mkpath "tor/private_key")
276 "missing tor key?"
277
274 -- Finally, export public keys if they do not exist. 278 -- Finally, export public keys if they do not exist.
275 either warn (write $ mkpath "root/.ssh/id_rsa.pub") 279 either warn (write $ mkpath "root/.ssh/id_rsa.pub")
276 $ show_ssh' "ssh-client" grip (rtKeyDB rt) 280 $ show_ssh' "ssh-client" grip (rtKeyDB rt)