Fix easy-rsa error
Error from https://github.com/OpenVPN/easy-rsa/issues/261 Added lines to circumvent the issue of not being able to create certificates correctly.
This commit is contained in:
parent
92d90dac29
commit
74f6bdfe42
@ -304,7 +304,9 @@ LimitNPROC=infinity" > /etc/systemd/system/openvpn-server@server.service.d/disab
|
|||||||
rm -f ~/easyrsa.tgz
|
rm -f ~/easyrsa.tgz
|
||||||
cd /etc/openvpn/server/easy-rsa/
|
cd /etc/openvpn/server/easy-rsa/
|
||||||
# Create the PKI, set up the CA and the server and client certificates
|
# Create the PKI, set up the CA and the server and client certificates
|
||||||
|
dd if=/dev/urandom of=/etc/openvpn/server/easy-rsa/pki/.rnd bs=256 count=1
|
||||||
./easyrsa init-pki
|
./easyrsa init-pki
|
||||||
|
dd if=/dev/urandom of=/etc/openvpn/server/easy-rsa/pki/.rnd bs=256 count=1
|
||||||
./easyrsa --batch build-ca nopass
|
./easyrsa --batch build-ca nopass
|
||||||
EASYRSA_CERT_EXPIRE=3650 ./easyrsa build-server-full server nopass
|
EASYRSA_CERT_EXPIRE=3650 ./easyrsa build-server-full server nopass
|
||||||
EASYRSA_CERT_EXPIRE=3650 ./easyrsa build-client-full "$client" nopass
|
EASYRSA_CERT_EXPIRE=3650 ./easyrsa build-client-full "$client" nopass
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user