9 lines
262 B
Plaintext
9 lines
262 B
Plaintext
|
#!/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
|
||
|
|