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

askpass on user defined doesn't work #60

Open
Zomboided opened this issue Apr 8, 2017 · 2 comments
Open

askpass on user defined doesn't work #60

Zomboided opened this issue Apr 8, 2017 · 2 comments
Labels

Comments

@Zomboided
Copy link
Owner

Asks for password when adding the key, but doesn't bother populating the ovpn because it doesn't know what to do if the VPN provider is user defined.

Need to add an extra option to user defined similar to the others as to when to bother adding it or not. Maybe if it's being asked for I can assume it exists and just populate it anyway?

@HeadHunt94
Copy link

so what is then the solution to the problem? adding a new option? what option?
sry i dont get it

@Darren-Hill
Copy link

Darren-Hill commented May 7, 2019

I've just hit a similar issue trying to use User Defined to connect to a PiVPN server. There seems to be a couple of points of note.

If you put the askpass tag in, the addon does ask for the password and saves it in user.txt. However looking in the ovpn file it seems to modify askpass to point to {hash}path/key.txt instead?

But even if I duplicate user.txt to key.txt, it still fails as from the openvpn log it looks like it's trying to open the folder rather than the file with the password in it:

Error reading password from Private Key authfile: /storage/.kodi/userdata/addon_data/service.vpn.manager/UserDefined/

Edited to add - creating a profile in PiVPN with pivpn -a nopass removes the key encryption password, and the add-on can use that ovpn profile out of the box. So it's an ok work-around in this case, given that the password is stored in a plain text file beside the ovpn file anyway so isn't exactly secure.

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

No branches or pull requests

3 participants