mirror of
https://github.com/Nyr/openvpn-install.git
synced 2024-11-23 21:46:08 +03:00
Fix #764
This commit is contained in:
parent
9847d99849
commit
221319aa54
@ -242,8 +242,10 @@ LimitNPROC=infinity" > /etc/systemd/system/openvpn-server@server.service.d/disab
|
|||||||
EASYRSA_CRL_DAYS=3650 ./easyrsa gen-crl
|
EASYRSA_CRL_DAYS=3650 ./easyrsa gen-crl
|
||||||
# Move the stuff we need
|
# Move the stuff we need
|
||||||
cp pki/ca.crt pki/private/ca.key pki/issued/server.crt pki/private/server.key pki/crl.pem /etc/openvpn/server
|
cp pki/ca.crt pki/private/ca.key pki/issued/server.crt pki/private/server.key pki/crl.pem /etc/openvpn/server
|
||||||
# CRL is read with each client connection, when OpenVPN is dropped to nobody
|
# CRL is read with each client connection, while OpenVPN is dropped to nobody
|
||||||
chown nobody:"$group_name" /etc/openvpn/server/crl.pem
|
chown nobody:"$group_name" /etc/openvpn/server/crl.pem
|
||||||
|
# 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
|
# 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
|
# Create the DH parameters file using the predefined ffdhe2048 group
|
||||||
|
Loading…
Reference in New Issue
Block a user