]> jfr.im git - vpn-prov.git/blame - README.md
misc updates
[vpn-prov.git] / README.md
CommitLineData
ac397a39
JR
1## Provisioning PHP deployment
21. `cp config.php.example config.php` && `vim config.php`
31. `vim base.ovpn` and adjust to tastes
41. Copy `ta.key` from OpenVPN server into root folder.
51. `cd easy-rsa`
61. `cp vars.example vars` && `vim vars`
7 Set KEY_COUNTRY, KEY_PROVINCE, KEY_CITY, KEY_ORG, KEY_EMAIL to sane values
81. `mkdir keys && sudo chown <php username> keys`
91. Access /init.php to create the necessary files.
10 (This script is idempotent and won't re-do anything, so you can leave it in place afterwards)
02449cb1
JR
111. `sudo -u <php username> ./build-key <name>` to test
121. `sudo -u <php username> ./build-key-server <name>` to create server keys
13 There is also `./revoke-full <name>` if you should need to revoke a key.
ac397a39
JR
14
15To start fresh: `rm -rf easy-rsa/keys`
16
17Note: the instance of PHP which is running this tool,
18should be running under a dedicated user account.
19This ensures the security of the keys.
20
21Production instances should be used like an Apache Alias, i.e. `Alias /vpn-prov/ /var/www/vpn-prov/www/`
22
23## GPO Deployment
24Edit install-openvpn.bat to adjust URLs to suit, create scheduled task in GPO to run it from a share.
25Optionally create services in GPO to ensure the service is started even if user disabled it.