Merge pull request #64 from ypid/copy_server_files-ensure-rm
ovpn_copy_server_files: Ensure that no other keys then the one for the server is present.
This commit is contained in:
commit
407506392f
@ -17,6 +17,9 @@ else
|
|||||||
TARGET="$OPENVPN/server"
|
TARGET="$OPENVPN/server"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
## Ensure that no other keys then the one for the server is present.
|
||||||
|
rm --recursive --force "$TARGET/pki/private" "$TARGET/pki/issued"
|
||||||
|
|
||||||
echo "
|
echo "
|
||||||
pki/private/${OVPN_CN}.key
|
pki/private/${OVPN_CN}.key
|
||||||
pki/issued/${OVPN_CN}.crt
|
pki/issued/${OVPN_CN}.crt
|
||||||
|
Loading…
Reference in New Issue
Block a user