openvpn.md (752B)
1 # openvpn 2 3 ## setup server 4 ``` 5 sudo apt-get update && sudo apt-get upgrade 6 sudo apt-get install openvpn easy-rsa 7 ``` 8 ... all same until /etc/openvpn/easy-rsa/keys 9 ``` 10 cd /etc/openvpn/easy-rsa/ 11 cp vars.example vars 12 vi vars 13 ``` 14 - uncomment and modify following lines 15 ``` 16 #set_var EASYRSA_REQ_COUNTRY "US" 17 #set_var EASYRSA_REQ_PROVINCE "California" 18 #set_var EASYRSA_REQ_CITY "San Francisco" 19 #set_var EASYRSA_REQ_ORG "Copyleft Certificate Co" 20 #set_var EASYRSA_REQ_EMAIL "me@example.net" 21 #set_var EASYRSA_REQ_OU "My Organizational Unit" 22 ``` 23 - save and close 24 ``` 25 ./easyrsa init-pki 26 ``` 27 28 when service starts and waits for password in the background use this to enter password 29 ``` 30 sudo systemd-tty-ask-password-agent --query 31 ```