flant / ovpn-admin

Simple web UI to manage OpenVPN users.
Apache License 2.0
1.39k stars 261 forks source link

Cannot create new users #160

Open sajtdavid opened 1 year ago

sajtdavid commented 1 year ago

Using binary version on Ubuntu 22, I was not able to add new users: DEBU[0013] cd /etc/openvpn/server/easy-rsa && easyrsa build-client-full xy nopass 1>/dev/null After this command, the random values appeared, but no further lines (frontend displayed success, but user did not appear). Turned out, my version of easy-rsa was asking to confirm request details on the command line. I was able to solve this by running export EASYRSA_BATCH=1 before running the file. Maybe we should use --batch parameter in the command.

pashcovich commented 1 year ago

which setup configuration do you have? just latest binary executed on ubuntu?

sajtdavid commented 1 year ago

ovpn-admin: 2.0.1/ovpn-admin-linux-amd64.tar.gz, simply running from a shell ubuntu: 22.04.1 LTS (GNU/Linux 5.15.0-47-generic x86_64) openvpn: OpenVPN 2.5.5 x86_64-pc-linux-gnu easyrsa: 3.1.1 Installed following this article: https://www.cyberciti.biz/faq/ubuntu-22-04-lts-set-up-openvpn-server-in-5-minutes/

pashcovich commented 1 year ago

hmm, interesting. right now we are using easyrsa v3.0.8, and the script you provided uses v3.1.1 that we haven't tested this version yet. as i already wrote here

and in addition right now we only support the tls-auth parameter in the server configuration and expect the secret for this parameter to be named ta.key, but the script you are using uses tls-crypt so you will don't have needed certificate to generate user config