diff options
author | Linus Nordberg <linus@nordu.net> | 2015-06-05 14:30:33 +0200 |
---|---|---|
committer | Linus Nordberg <linus@nordu.net> | 2015-06-05 14:33:55 +0200 |
commit | 014495122d6c2c73f4e183b831af477d4fd0dd94 (patch) | |
tree | 1321cc791e430549448e3a641a3831e0a27e25b2 /catlfish-dev-lunahsm/start.sh | |
parent | e21514105975f34d5c820c8446c1dd8178c3e775 (diff) |
Add catlfish-dev-lunahsm.
Diffstat (limited to 'catlfish-dev-lunahsm/start.sh')
-rw-r--r-- | catlfish-dev-lunahsm/start.sh | 9 |
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 |