Alternative method for adding/creating user/client cert


currently I use the WUI to add new user (RoadWarrior), but I want to automate this entire process. So I would like to know if there is a way to do this using the terminal.
My initial thought would be having a script, which will ssh to the IPfire server, then run some commands to add new user and finally retrieve the new user’s cert

Thanks in advance!

1 Like

This is generally possible, although not recommended. The internal file format might change.

The commands to generate certificates and the rest of the configuration can be found in ovpnmain.cgi.

If you have a solution, let me know.
I’m planning to do so. Probably through a CSV and supporting scripts. Both for adding and removing OVPN users.
Good luck