1
0
Fork 0
mirror of https://github.com/Nyr/openvpn-install.git synced 2025-04-04 21:23:31 +03:00

update secret generation command because of deprecation

change `openvpn --genkey --secret /etc/openvpn/server/tc.key` to `openvpn --genkey secret /etc/openvpn/server/tc.key`, since --secret option is deprecated in newer versions of openvpn when running bleeding edge.
This commit is contained in:
Ahwxorg 2023-04-23 20:50:58 +02:00 committed by GitHub
parent d4ae10ec25
commit 64708c0672
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -254,7 +254,7 @@ LimitNPROC=infinity" > /etc/systemd/system/openvpn-server@server.service.d/disab
# Without +x in the directory, OpenVPN can't run a stat() on the CRL file
chmod o+x /etc/openvpn/server/
# Generate key for tls-crypt
openvpn --genkey --secret /etc/openvpn/server/tc.key
openvpn --genkey secret /etc/openvpn/server/tc.key
# Create the DH parameters file using the predefined ffdhe2048 group
echo '-----BEGIN DH PARAMETERS-----
MIIBCAKCAQEA//////////+t+FRYortKmq/cViAnPTzx2LnFg84tNpWp4TZBFGQz