blob: 3862787c8a53c44ed5d0a8271b9e7e8d6934f3c7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
#! /bin/sh
[ -z "$HSM_SERVER_NAME" ] && HSM_SERVER_NAME=server-fqdn
[ -z "$HSM_CLIENT_NAME" ] && HSM_CLIENT_NAME=client-fqdn
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}Cert.pem
/usr/lunasa/bin/vtl createCert -n ${HSM_CLIENT_NAME}
fi
su catlfish -c /var/run/catlfish/start.sh $@
|