Skip to content

Commit 26cb703

Browse files
OpenVPN: fix deprecated genkey usage
Avoid the following OpenVPN deprecation notice while generating the key: DEPRECATED OPTION: The option --secret is deprecated. WARNING: Using --genkey --secret filename is DEPRECATED. Use --genkey secret filename instead. In short: #Bad: 'sudo openvpn --genkey --secret ta.key' #Good: 'sudo openvpn --genkey secret ta.key' Ref #216
1 parent f53ac43 commit 26cb703

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

how-to/security/install-openvpn.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ tls-auth ./easy-rsa/ta.key 0
135135
Complete this set with a TLS Authentication (TA) key in `etc/openvpn` for `tls-auth` like this:
136136

137137
```bash
138-
sudo openvpn --genkey --secret ta.key
138+
sudo openvpn --genkey secret ta.key
139139
```
140140

141141
Edit `/etc/sysctl.conf` and uncomment the following line to enable IP forwarding:

0 commit comments

Comments
 (0)