9 lines
262 B
Bash
9 lines
262 B
Bash
#!/bin/bash
|
|
|
|
if [[ -f /opt/phpki/phpki-store/CA/private/cakey.pem && ! -f /opt/phpki/phpki-store/CA/private/takey.pem ]]
|
|
then
|
|
echo "creating missing takey.pem"
|
|
runuser -u phpki -- openvpn --genkey --secret /opt/phpki/phpki-store/CA/private/takey.pem
|
|
fi
|
|
|