We have moved to a new Sailfish OS Forum. Please start new discussions there.
8

[2.2.0.29][VPN] OpenVPN Client *.key Password

asked 2018-03-20 14:44:50 +0300

this post is marked as community wiki

This post is a wiki. Anyone with karma >75 is welcome to improve it.

updated 2018-06-10 13:09:41 +0300

cvp gravatar image

Hello, I have a problem that I can not solve. My OpenVPN client has a password which I also have to enter (without username). However, there is no possibility to enter it in the GUI.

You can indeed select an OpenVPN password file that I do not have. For fun, I test this with a txt file which includes my password. Unfortunately that did not work.

To test if my OpenVPN server is working at all, i created a user without a password. That went without problems. But I do not want that.

Furthermore, I test the app "SecureFishNet". There you can enter a password and of course the connection works fine. But I want to use the SF internal VPN client.

Is there a way to add the password to the existing client account via the terminal?

Comments

maybe I get you wrong but isn't asked for a password to in the moment when you import / start the config? Iirc I had some problems with exported configs from my pfsense. The client exporter has somewhere an option to set the config under level 2.3. the ovpn client on sailfish is a little older.

carepack ( 2018-03-20 16:32:52 +0300 )

no, nothing is asked :(

cvp ( 2018-03-20 21:34:13 +0300 )
1

Your VPN configuration uses a passphrase protection for the key. You could extract the key, remove the passphrase with OpenSSL and put the result back into the configuration. BT,DT.

Maus ( 2018-03-20 21:48:19 +0300 )

thanks, but there makes such a password "security" no more sense.

cvp ( 2018-03-21 11:13:06 +0300 )
2

@cvp Absolutely! While my comment is a viable solution, I'd not recommend it under any circumstances. Personally, I protect all my keys with passphrases. Therefore, the Sailfish GUI is dysfunctional for me, too.

Maus ( 2018-03-21 11:24:24 +0300 )
see more comments

1 Answer

Sort by » oldest newest most voted
1

answered 2018-06-10 13:09:01 +0300

cvp gravatar image

So, 2.2.0 has appeared. The VPN app has been "improved". But i can not enter a password for the *.key file. It is always possible to add a "certificate password file", which is not possible in my case. I test it again with plaintext in a txt file. It must be possible to enter a password, as in something like SecureFishNet App (Passwort for key). Please Jolla, it possible to add the password via terminal?

link

Comments

Can't you connect from the terminal? I used devel-su since normal user doesn't have the permissions needed and it seems to work as it should. I also tried "auth-user-pass filename" and that worked for me. I haven't tried any .key I can't get the VPN in settings to work at all but maybe i'm doing it wrong ;)

openvpn --config /path/to/foo.ovpn
abc123 ( 2018-07-25 23:52:52 +0300 )
add a comment
Login/Signup to Answer

Question tools

Follow
2 followers

Stats

Asked: 2018-03-20 14:44:50 +0300

Seen: 1,763 times

Last updated: Jun 10 '18