Cannot import ovpn profile with OpenVPN Connect app on Android

Post Reply
morningstar.fallen
OpenVpn Newbie
Posts: 2
Joined: Tue Jul 11, 2017 2:48 pm

Cannot import ovpn profile with OpenVPN Connect app on Android

Post by morningstar.fallen » Tue Jul 11, 2017 2:58 pm

Hi guys,

I have an ovpn file generated by the server built using these instructions:
https://www.digitalocean.com/community/tutorials/how-to-set-up-an-openvpn-server-on-ubuntu-16-04

It works fine on Windows desktop OpenVPN clients but when I try to import it into the OpenVPN Connect app on Android, I get the following error:
Error reading file referenced by profile : ta.key : cannot open for read: /sdcard/Download/ta.key
I have successfully imported the same file into "OpenVPN for Android" app from google play which works absolutely fine.

Any thoughts?

alexvechirko
OpenVpn Newbie
Posts: 1
Joined: Wed Nov 29, 2017 7:17 pm

Re: Cannot import ovpn profile with OpenVPN Connect app on Android

Post by alexvechirko » Wed Nov 29, 2017 7:25 pm

@morningstar.fallen Hi, have the same issue. And I think my fix is not the right way)))) but it works. I just created file ta.key (paste from server) in the same directory where I create *.ovpn file. If you fix this in right way, more simple - take me note. Thank

TiTex
OpenVPN Expert
Posts: 258
Joined: Tue Apr 12, 2011 6:22 am

Re: Cannot import ovpn profile with OpenVPN Connect app on Android

Post by TiTex » Wed Nov 29, 2017 9:47 pm


morningstar.fallen
OpenVpn Newbie
Posts: 2
Joined: Tue Jul 11, 2017 2:48 pm

Re: Cannot import ovpn profile with OpenVPN Connect app on Android

Post by morningstar.fallen » Tue Dec 12, 2017 5:27 pm

I figured it out! I must have uncommented the following line in ~/client-configs/base.conf by mistake:

Code: Select all

;tls-auth ta.key 1
That was causing the OpenVPN Connect app to look for a separate ta.key file, which was not there because I did use the inline config to create my .ovpn files.

Post Reply