Revert "Use --genkey secret filename instead (#1059)"

This reverts commit 0de56f8f33.
This commit is contained in:
Stanislas Lange 2022-11-21 19:33:24 +01:00
parent d3751457ab
commit 86a6d2d3e7
No known key found for this signature in database
1 changed files with 2 additions and 2 deletions

View File

@ -742,11 +742,11 @@ function installOpenVPN() {
case $TLS_SIG in
1)
# Generate tls-crypt key
openvpn --genkey secret /etc/openvpn/tls-crypt.key
openvpn --genkey --secret /etc/openvpn/tls-crypt.key
;;
2)
# Generate tls-auth key
openvpn --genkey secret /etc/openvpn/tls-auth.key
openvpn --genkey --secret /etc/openvpn/tls-auth.key
;;
esac
else