From e58addc2c5b8cbc75709d457a54b3ee50c6036e0 Mon Sep 17 00:00:00 2001 From: Nyr Date: Tue, 24 Nov 2015 23:04:56 +0100 Subject: [PATCH] Verify server certificate during easy-rsa download --- openvpn-install.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/openvpn-install.sh b/openvpn-install.sh index d6f4f12..2398498 100644 --- a/openvpn-install.sh +++ b/openvpn-install.sh @@ -191,18 +191,18 @@ else read -n1 -r -p "Press any key to continue..." if [[ "$OS" = 'debian' ]]; then apt-get update - apt-get install openvpn iptables openssl -y + apt-get install openvpn iptables openssl ca-certificates -y else # Else, the distro is CentOS yum install epel-release -y - yum install openvpn iptables openssl wget -y + yum install openvpn iptables openssl wget ca-certificates -y fi # An old version of easy-rsa was available by default in some openvpn packages if [[ -d /etc/openvpn/easy-rsa/ ]]; then rm -rf /etc/openvpn/easy-rsa/ fi # Get easy-rsa - wget --no-check-certificate -O ~/EasyRSA-3.0.1.tgz https://github.com/OpenVPN/easy-rsa/releases/download/3.0.1/EasyRSA-3.0.1.tgz + wget -O ~/EasyRSA-3.0.1.tgz https://github.com/OpenVPN/easy-rsa/releases/download/3.0.1/EasyRSA-3.0.1.tgz tar xzf ~/EasyRSA-3.0.1.tgz -C ~/ mv ~/EasyRSA-3.0.1/ /etc/openvpn/ mv /etc/openvpn/EasyRSA-3.0.1/ /etc/openvpn/easy-rsa/