mirror of
https://github.com/angristan/openvpn-install.git
synced 2025-12-15 16:37:03 +01:00
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
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user