diff options
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 |