Page 1 of 1

Re: Generate hashed password

Posted: Tue Jul 03, 2018 5:43 pm
by boro
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?

Re: Generate hashed password

Posted: Wed Jul 04, 2018 9:13 am
by cedar
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.