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

UI does not parse easy-rsa.vars #115

Open
gregewing opened this issue Nov 13, 2024 · 1 comment
Open

UI does not parse easy-rsa.vars #115

gregewing opened this issue Nov 13, 2024 · 1 comment

Comments

@gregewing
Copy link

When if I pre-load an exact copy of the easy-rsa.vars and pki/vars files into the openvpn-server container volumes before the container is created, I notice that the details in the files are not parsed by the openvpn-ui container to fill the fields in the EasyRSA vars form.

This is somewhat disconcerting, especially when know that I have correctly configured the easy-rsa vars. Indeed, I can tell that the vars have been correctly loaded because the server certificate is built using the correct certificate information. furthermore, if I click on view vars, I can see all the dorrect data, so I know the UI has access to it...

I'm guessing that the easy-rsa vars data that is displayed in the UI is ignoring the file and populating the data in the fields on the for from data in the db, and that this data is not updated at container creation time by parsing an existing easy-rsa.vars file.

I'd like to propose an improvement whereby the openvpn-ui container checks for the presence of the required fields in the easy-rsa.vars ( to handle if someone gives it an empty file ) and loads the values into the db so that they can be displayed in the ui. I guess this would be a relatively simple upgrade, as the databse clearly has all the required fields already and the ui is able to store values provided in the fields by the user in both the database and also in the required config files.

thanks

@gregewing
Copy link
Author

Thsi also affects the creation of .ovpn files, where teh data from the Create Certificates form is used for certificate generation, presumably pulled from the sqlite database, and ignores the values in the EasyRSA vars file(s)

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

No branches or pull requests

1 participant