Sorry to resurrect an old thread but I'm running into the same question right now.
I want to genereate a vpn_server.config file remotely via an ansible playbook. I can set most variables just fine but I'm unable to figure out how the admin pass is generated (i'd like to set a random admin pass for each new installation).
Any ideas?
Generate hashed password
-
- Site Admin
- Posts: 2081
- Joined: Sat Mar 09, 2013 5:37 am
Re: Generate hashed password
This is dirty way but works.
on vpncmd command line:
ServerPasswordSet foobar
ConfigGet filename
Please do not forget to restore the original password at the end.
on vpncmd command line:
ServerPasswordSet foobar
ConfigGet filename
Please do not forget to restore the original password at the end.