mirror of
				https://github.com/angristan/openvpn-install.git
				synced 2025-10-30 21:47:37 +01:00 
			
		
		
		
	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:
This commit is contained in:
		| @@ -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 | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Padraig Doran
					Padraig Doran