New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add password option for clients #160
Conversation
So this is working fine, but atm the password is asked when |
I was thinking about add |
General solution 1: pipes in this Stackoverflow answer might offer some guidance. |
it is possible to create Multiple client using single KEY? so then the client can be add using WEBMIN or OCS PANEL |
It's exactly the same except it is more clear to ask for a client password and put it in a variable than having a random prompt in the middle of easy-rsa stuff waiting for something. |
I just installed your script for the first time, thanks! |
👍 for this :). Is there any reasony why this isn't merged yet to master? |
Oh I see. Well for me it's good enough, but I understand that it would be more user friendly if it was asked in the beginning. |
When I first used your script about 1-2 month ago, I had to modify the script file as suggested in #9 (remove NOPASS in the code): This is very complicated, and thus I suggested you integrate it in your script. |
You can choose whether you want to use a password or not. |
Where is that option? Can't see it in the screenshot? |
Perfect. So that feature I implemented now and no need any more to edit the code yourself? |
So let's hope it is merged. |
Can we have this feature implemented for 2.4-update as well? |
This PR adds the option to add a password to the client file. It will be asked when connecting to the OpenVPN server. Basically, this encrypts the client's private key with a password.
Using a password for your private key is more secure, as not having one mean anyone with your .ovpn file can connect to your server and/or decrypt your traffic if they manage to make a MitM.
The user will be given the option when installing the server for the first time (and thus creating the first user) and when adding new users.