Update EasyRSA to 3.0.5

This commit is contained in:
angristan 2018-09-16 18:40:08 +02:00
parent d6d209ef8c
commit 95d5ab67d8

View file

@ -639,11 +639,11 @@ WantedBy=multi-user.target" > /etc/systemd/system/iptables.service
rm -rf /etc/openvpn/easy-rsa/ rm -rf /etc/openvpn/easy-rsa/
fi fi
# Get easy-rsa # Get easy-rsa
wget -O ~/EasyRSA-3.0.4.tgz https://github.com/OpenVPN/easy-rsa/releases/download/v3.0.4/EasyRSA-3.0.4.tgz wget -O ~/EasyRSA-3.0.5.tgz https://github.com/OpenVPN/easy-rsa/releases/download/v3.0.5/EasyRSA-3.0.5.tgz
tar xzf ~/EasyRSA-3.0.4.tgz -C ~/ tar xzf ~/EasyRSA-3.0.5.tgz -C ~/
mv ~/EasyRSA-3.0.4/ /etc/openvpn/easy-rsa/ mv ~/EasyRSA-3.0.5/ /etc/openvpn/easy-rsa/
chown -R root:root /etc/openvpn/easy-rsa/ chown -R root:root /etc/openvpn/easy-rsa/
rm -f ~/EasyRSA-3.0.4.tgz rm -f ~/EasyRSA-3.0.5.tgz
cd /etc/openvpn/easy-rsa/ cd /etc/openvpn/easy-rsa/
# Generate a random, alphanumeric identifier of 16 characters for CN and one for server name # Generate a random, alphanumeric identifier of 16 characters for CN and one for server name
SERVER_CN="cn_$(head /dev/urandom | tr -dc 'a-zA-Z0-9' | fold -w 16 | head -n 1)" SERVER_CN="cn_$(head /dev/urandom | tr -dc 'a-zA-Z0-9' | fold -w 16 | head -n 1)"