Faster dhparams for vpn

This commit is contained in:
Bob Mottram 2017-09-30 12:40:06 +01:00
parent 4cdd66d6f9
commit 8322e0a553
1 changed files with 1 additions and 1 deletions

View File

@ -561,7 +561,7 @@ function install_stunnel {
function vpn_generate_keys {
# generate host keys
if [ ! -f /etc/openvpn/dh2048.pem ]; then
openssl dhparam -out /etc/openvpn/dh2048.pem 2048
${PROJECT_NAME}-dhparam -o /etc/openvpn/dh2048.pem
fi
if [ ! -f /etc/openvpn/dh2048.pem ]; then
echo $'vpn dhparams were not generated'