Add key generation to setup script

This commit is contained in:
Kumi 2019-02-02 15:18:57 +00:00
parent f25bf54f26
commit 32764274dd

View file

@ -23,6 +23,7 @@ sudo cp misc/cron /etc/cron.d/vpnmanager
sudo mkdir -p /etc/openvpn/client-configs/files sudo mkdir -p /etc/openvpn/client-configs/files
chmod +x misc/make_config chmod +x misc/make_config
sudo cp misc/make_config misc/base.conf /etc/openvpn/client-configs sudo cp misc/make_config misc/base.conf /etc/openvpn/client-configs
openvpn --genkey --secret /etc/openvpn/ca/keys/ta.key
sudo chown vpn.vpn /etc/openvpn/client-configs -R sudo chown vpn.vpn /etc/openvpn/client-configs -R
sudo systemctl daemon-reload sudo systemctl daemon-reload
sudo systemctl enable vpnmanager sudo systemctl enable vpnmanager