From 90f2313ff3145936164ca2239858a6d531564bed Mon Sep 17 00:00:00 2001 From: Stanislas Date: Sat, 13 Dec 2025 18:59:40 +0100 Subject: [PATCH] fix: use non-deprecated --genkey syntax for tls-crypt and tls-auth (#1383) ## Summary - Replace deprecated `--genkey --secret` syntax with `--genkey secret` for tls-crypt and tls-auth key generation The OpenVPN source explicitly warns about this: ``` WARNING: Using --genkey --secret filename is DEPRECATED. Use --genkey secret filename instead. ``` Closes #1256 Close https://github.com/angristan/openvpn-install/issues/1280 --- openvpn-install.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/openvpn-install.sh b/openvpn-install.sh index cc0b43b..7ac7823 100755 --- a/openvpn-install.sh +++ b/openvpn-install.sh @@ -1170,11 +1170,11 @@ function installOpenVPN() { ;; 2) # Generate tls-crypt key - run_cmd_fatal "Generating tls-crypt key" openvpn --genkey --secret /etc/openvpn/server/tls-crypt.key + run_cmd_fatal "Generating tls-crypt key" openvpn --genkey secret /etc/openvpn/server/tls-crypt.key ;; 3) # Generate tls-auth key - run_cmd_fatal "Generating tls-auth key" openvpn --genkey --secret /etc/openvpn/server/tls-auth.key + run_cmd_fatal "Generating tls-auth key" openvpn --genkey secret /etc/openvpn/server/tls-auth.key ;; esac else