======OpenVPN on Ubuntu 18.04====== This guide is for setting up an OpenVPN server on Ubuntu 18.04, there are some similarities between the 16.04 and 18.04 guides, mostly in the parts dealing with EasyRSA. =====Creating a New Certificate===== Start by logging into the OpenVPN machine and creating the certificate request for which the Certificate Authority will sign.\\ \\ With a passcode: $ cd ~/EasyRSA-3.0.x $ ./easyrsa gen-req Without a passcode: $ cd ~/EasyRSA-3.0.x $ ./easyrsa gen-req nopass Copy the resulting file .key to the ''~/client-configs/keys/'' directory. cp pki/private/.key ~/client-configs/keys/ Transfer the ''.req'' to the CA machine using whatever method you wish. I use SFTP from the CA machine to connect to the OpenVPN server and pull down the file. On the **CA machine**, import the certificate request and generate the certificate. cd EasyRSA-3.0.x/ ./easyrsa import-req .req ./easyrsa sign-req client Once completed, again using SFTP, copy the resulting ''.key'' to the ''~/client-configs/files/'' directory on the OpenVPN server. Now you can create the ovpn config file. On the **OpenVPN machine**: cd ~/client-configs sudo ./make_config.sh This will create the ''.ovpn'' file in ''~/client-configs/files''