-
-
Notifications
You must be signed in to change notification settings - Fork 86
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
Deleting a revoked client brings to the 404 page #85
Comments
Hi @zawyelwin, thanks for the reporting. Let me test it, looks like a bug. EDIT: Did you tried to delete certs created with UI or it were old certificates? I tried to test it with |
I tried to delete the certs created from UI. I am also using the same versions as yours. BTW setup using this https://github.com/d3vilh/openvpn-aws. Thanks for looking into it. |
I am having the same problem and I am not running openvpn-aws. It seems like the UI got stuck thinking that there is a cert to be deleted, when you try to delete it (press the delete button) it redirects you to the 404 page. |
The issue likely occurred in this section
The Delete (Burn) function expects three parameters (dynamic variables) from the router annotation: CN Name (Common Name) In my case, a 404 page was returned because the TFAname parameter was missing. Therefore, you can remove certificates using the curl command with the appropriate parameters using the following URL structure: /host/certificates/burn/CNname/Serial/TFAname For example
Thanks! I hope this helps! |
Burn should work fine without TFAname. let me try to reproduce it now. 2024/12/27 20:54:46.617 [I] [certificates.go:142] Controller: Creating certificate with parameters: Name=revoking, Staticip=10.0.0.1, Passphrase=, ExpireDays=888, [email protected], Country=CY, Province=PF, City="Paphos", Org="Evacuation", OrgUnit="MyOrganizationalUnit", TFAName=, TFAIssuer=
2024/12/27 20:54:46.617 [I] [certificates.go:119] Lib: Creating certificate with parameters: name=revoking, staticip=10.0.0.1, passphrase=, expiredays=888, [email protected], country=CY, province=PF, city="Paphos", org="Evacuation", orgunit="MyOrganizationalUnit", tfaname=, tfaissuer=
2024/12/27 20:54:46.617 [D] [utils.go:51] Then I'll close tab and load it again in incognito mode, after UI container restart and 10 minutes of chill with cup of chai. UPDATE:So, what I did is even better - I opened session in new browser (Firefox. Previously I used Safari) 2024/12/27 21:10:00.510 [I] [certificates.go:192] Controller: Burning certificate with parameters: CN=revoking, serial=76C27313280F651132AAC620136D8641, tfaname=none
2024/12/27 21:10:00.510 [I] [certificates.go:281] Lib: Burning certificate with parameters: CN=revoking, serial=76C27313280F651132AAC620136D8641, tfaname=none I test it in new UI version - All the cert details are reading by lib function If the index file not touched - then we should be good. |
When attempting to delete a revoked client, the action redirects to a 404 error page. The deletion process works perfectly if the client is deleted immediately after revocation. However, if the page is refreshed before attempting to delete the client, it results in a 404 error page.
The text was updated successfully, but these errors were encountered: