Skip to content

Commit 395947b

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 6415bd0 commit 395947b

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
@@ -131,7 +131,7 @@ tls-auth ta.key 0
131131
Complete this set with a TLS Authentication (TA) key in `/etc/openvpn` for `tls-auth` like this:
132132

133133
```bash
134-
sudo openvpn --genkey --secret ta.key
134+
sudo openvpn --genkey secret ta.key
135135
```
136136

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

0 commit comments

Comments
 (0)