service.vpn.manager icon indicating copy to clipboard operation
service.vpn.manager copied to clipboard

askpass on user defined doesn't work

Open Zomboided opened this issue 7 years ago • 2 comments

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?

Zomboided avatar Apr 08 '17 22:04 Zomboided

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

HeadHunt94 avatar Oct 31 '18 20:10 HeadHunt94

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.

Darren-Hill avatar May 07 '19 20:05 Darren-Hill