This tutorial shows the installation and configuration of OpenVPN on both macOS and Ubuntu.
The easiest way to install OpenVPN on macOS is by using the package manager for macOS Homebrew. But first, you need to install the Xcode Command Line Tools for macOS.