Skip to content
Snippets Groups Projects
Commit 9229d27d authored by Bob Mottram's avatar Bob Mottram
Browse files

Check if vpn dhparams get generated

parent 5fac7b57
No related branches found
No related tags found
No related merge requests found
......@@ -549,8 +549,14 @@ function install_vpn {
# generate host keys
if [ ! -f /etc/openvpn/dh2048.pem ]; then
openssl dhparam -out /etc/openvpn/easy-rsa/keys/dh2048.pem 2048
openssl dhparam -out /etc/openvpn/dh2048.pem 2048
fi
if [ ! -f /etc/openvpn/dh2048.pem ]; then
echo $'vpn dhparams were not generated'
exit 73724523
fi
cp /etc/openvpn/dh2048.pem /etc/openvpn/easy-rsa/keys/dh2048.pem
cd /etc/openvpn/easy-rsa
. ./vars
./clean-all
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment