mirror of
				https://github.com/angristan/openvpn-install.git
				synced 2025-10-31 14:07:36 +01:00 
			
		
		
		
	Verify server certificate during easy-rsa download
This commit is contained in:
		| @@ -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/ | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Nyr
					Nyr