From 0de56f8f335c74ad7de99c6165d1a8bc1d2e3149 Mon Sep 17 00:00:00 2001 From: Padraig Doran Date: Mon, 21 Nov 2022 18:12:46 +0000 Subject: [PATCH] Use --genkey secret filename instead (#1059) Fix for: WARNING: Using --genkey --secret filename is DEPRECATED. Use --genkey secret filename instead. https://community.openvpn.net/openvpn/wiki/DeprecatedOptions#Option:--secret Status Removed Deprecated in: OpenVPN v2.4 Removed in: OpenVPN v2.5 Affects: --genkey Result if used: User Warning printed Replaced by: secret (No leading double dash) Examples: Use --genkey secret filename Notes: --- openvpn-install.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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