Skip to content
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

problem with revoke function #237

Closed
ethaniel86 opened this issue Sep 4, 2023 · 1 comment · Fixed by #243
Closed

problem with revoke function #237

ethaniel86 opened this issue Sep 4, 2023 · 1 comment · Fixed by #243

Comments

@ethaniel86
Copy link

ethaniel86 commented Sep 4, 2023

Dashboard shows "User test revoked!" but user still showing in the list.

admin container logs
time="2023-09-04T07:55:10Z" level=debug msg="openvpn-user create --db.path /mnt/easyrsa/pki/users.db --user test --password test123"
time="2023-09-04T07:55:10Z" level=debug msg="User test created\n"
time="2023-09-04T07:55:10Z" level=info msg="Certificate for user test issued"
time="2023-09-04T07:55:10Z" level=info msg="xx.xx.xx.xx:62564 /api/users/list"
time="2023-09-04T07:55:17Z" level=info msg="xx.xx.xx.xx:62564 /api/user/revoke"
time="2023-09-04T07:55:17Z" level=info msg="Revoke certificate for user test"
time="2023-09-04T07:55:17Z" level=debug msg="cd /mnt/easyrsa && echo yes | easyrsa revoke easyrsa 1>/dev/null && test gen-crl 1>/dev/null"
time="2023-09-04T07:55:18Z" level=debug msg="exit status 1 : \nEasy-RSA error:\n\nUnable to revoke as the input file is not a valid certificate. Unexpected\ninput in file: /mnt/easyrsa/pki/issued/easyrsa.crt\n"
time="2023-09-04T07:55:18Z" level=debug msg="openvpn-user revoke --db-path /mnt/easyrsa/pki/users.db --user test"
time="2023-09-04T07:55:18Z" level=debug msg="exit status 1 : openvpn-user: error: unknown long flag '--db-path', try --help\n"

@Andrea-Mercurio
Copy link

problem caused by mismatch between flags:
ovpn-admin use openvpn-user with a bad flag: '--db-path'
must correct the ovpn-admin source file (main.go) to '--db.path' according to openvpn-user documentation

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants