Make sure we’re operating in a clean environment by typing. Build the Certificate AuthorityĮnsure you are in your CA directory, and then source the vars file you just edited: cd ~/openvpn-ca Press Ctrl + O to save and Ctrl + X to exit 4. export KEY_COUNTRY="**COUNTRYCODE**"Īlso change KEY_NAME to server export KEY_NAME="server" We only need to worry about a few of these, modify the following values to whatever you want. Inside, you will find some variables that can be adjusted to determine how your certificates will be created. Open that file now in your text editor: nano vars To configure the values our CA will use, we need to edit the vars file within the directory. Move into the newly created directory to begin configuring the CA: cd ~/openvpn-ca Setup Certificate Authority (CA) directoryĬopy the easy-rsa template directory into our home directory with the makecadir command: make-cadir ~/openvpn-ca The needed software is now on the server, ready to be configured. To update your server’s package index and install the necessary packages type: sudo apt-get update We will also be installing the easy-rsa package, which will help us set up an internal CA (certificate authority) for use with our VPN. OpenVPN is available in Ubuntu’s default repositories, so we can use apt for the installation. To start off, we will install OpenVPN onto our server. Root access to an Ubuntu 16.04 installation via SSH, first run these commands before anything else.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |