summaryrefslogtreecommitdiff
path: root/catlfish-dev-lunahsm/start.sh
diff options
context:
space:
mode:
authorLinus Nordberg <linus@nordu.net>2015-06-05 14:30:33 +0200
committerLinus Nordberg <linus@nordu.net>2015-06-05 14:33:55 +0200
commit014495122d6c2c73f4e183b831af477d4fd0dd94 (patch)
tree1321cc791e430549448e3a641a3831e0a27e25b2 /catlfish-dev-lunahsm/start.sh
parente21514105975f34d5c820c8446c1dd8178c3e775 (diff)
Add catlfish-dev-lunahsm.
Diffstat (limited to 'catlfish-dev-lunahsm/start.sh')
-rw-r--r--catlfish-dev-lunahsm/start.sh9
1 files changed, 9 insertions, 0 deletions
diff --git a/catlfish-dev-lunahsm/start.sh b/catlfish-dev-lunahsm/start.sh
new file mode 100644
index 0000000..27a25e7
--- /dev/null
+++ b/catlfish-dev-lunahsm/start.sh
@@ -0,0 +1,9 @@
+#! /bin/sh
+
+if ! [ -e /usr/lunasa/cert/client/catlfishKey.pem ]; then
+ /usr/lunasa/bin/vtl addServer \
+ -n ${HSM_SERVER_NAME} -c /usr/lunasa/cert/server/${HSM_SERVER_NAME}.pem
+ /usr/lunasa/bin/vtl createCert -n ${HSM_CLIENT_NAME}
+fi
+
+su catlfish -c /var/run/catlfish/start.sh