I am looking forward to create an as-simple-as-possible OpenVPN set-up.
I would like to use a single password to secure the communication instead of a set of key files.
How can I set it up this way?
I am looking forward to create an as-simple-as-possible OpenVPN set-up.
I would like to use a single password to secure the communication instead of a set of key files.
How can I set it up this way?
Yes, OpenVPN calls this the "static key" setup:
http://openvpn.net/index.php/open-source/documentation/miscellaneous/78-static-key-mini-howto.html
Note the listed disadvantages:
To use password authntification from file, you should use this directives in server configuration file:
client-cert-not-required
to allow authentification with user/password onlyusername-as-common-name
to get common name from username, because it can't be taken from certificatescript-security 2
to allow calling external scriptsauth-user-pass-verify <script> <method>
to force server ask for user/password.<script>
is executable file used to check user/password pair.<method>
is on of "via-env" and "via-file". Read manual about auth-user-pass-verify directive for detailsYou should write script by yourself.
At least you need server certificate. Then you can use mysql backend for user/password management. You can read more here