Add key generation to setup script
This commit is contained in:
parent
f25bf54f26
commit
32764274dd
1 changed files with 1 additions and 0 deletions
1
setup.sh
1
setup.sh
|
@ -23,6 +23,7 @@ sudo cp misc/cron /etc/cron.d/vpnmanager
|
|||
sudo mkdir -p /etc/openvpn/client-configs/files
|
||||
chmod +x misc/make_config
|
||||
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 systemctl daemon-reload
|
||||
sudo systemctl enable vpnmanager
|
||||
|
|
Loading…
Reference in a new issue