diff --git a/openvpn-install.sh b/openvpn-install.sh
index 64d8ed0..c905976 100755
--- a/openvpn-install.sh
+++ b/openvpn-install.sh
@@ -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