Page 1 of 1

Cannot import ovpn profile with OpenVPN Connect app on Android

Posted: Tue Jul 11, 2017 2:58 pm
by morningstar.fallen
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?

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

Posted: Wed Nov 29, 2017 7:25 pm
by alexvechirko
@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

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

Posted: Wed Nov 29, 2017 9:47 pm
by TiTex

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

Posted: Tue Dec 12, 2017 5:27 pm
by morningstar.fallen
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.