7 Commits

Author SHA1 Message Date
Johannes Keyser
634afef1c9
actions: Make subparsers mandatory, fixes calls without arguments
Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
2017-04-10 11:54:23 +05:30
Sunil Mohan Adapa
dc0f3151b1
openvpn: Set unique subject property on each cert generation
Just to be sure of the ability to generate the certificate even on
modifications.
2017-03-29 21:49:50 +05:30
Hemanth Kumar Veeranki
04cadbc82f
openvpn: Prevent failures when regenerating user certificate
Set unique_subject attribute to no in index.txt.attr file.  This
allows regenerating a certificate for a user.

Signed-off-by: Hemanth Kumar Veeranki <hemanthveeranki@gmail.com>
2017-03-29 21:33:58 +05:30
Sunil Mohan Adapa
f9bd2542a7
openvpn: Apply empty file check to private key also
When downloading user's profile, if user's private key is empty,
regenerate user's key.

Minor styling fixes too.
2017-03-27 21:58:32 +05:30
Hemanth Kumar Veeranki
fcd2499092
openvpn: When user certificate is empty, regenerate it
Signed-off-by: Hemanth Kumar Veeranki <hemanthveeranki@gmail.com>
2017-03-27 21:57:56 +05:30
fonfon
a9528c56d9
Service object to handle services on a system-level
The Service object now offers handling services on a system level,
and gathering information whether it's enabled or running.
New methods: enable, disable, is_enabled, is_running;

For this it needs the correct (system-level) service name.
All of the methods can be overridden/customized.

This changes all modules to the new Service object and deletes
action scripts that are not required anymore.
2016-05-11 18:19:27 -04:00
Sunil Mohan Adapa
646763ff3c openvpn: New module VPN into FreedomBox
- Authentication using client certificates.  Extra password based
  authentication for later.

- Auto setup of CA, server and client certificates.

- Provides a .ovpn profile for each user for easy setup.

- Use 4096 bit Diffie-Hellman parameters for better security.  If this
  takes to much time, reduce it to 2048 or 1024, at least during
  debugging.
2015-11-03 20:24:40 -05:00