Page 1 of 1
Can't import .ovpn file into OpenVPN Connect (iOS) using Mail
Posted: Thu Sep 14, 2017 5:23 am
by bwanajag
My ovpn is setup and I'm able to connect with my Mac, but I want to also connect with iOS devices. Since iTunes no longer has the ability access apps on devices (as of 13 Sep 2017; v 12.7), the only way I know to import a .ovpn file is by emailing it and then selecting the .ovpn file in the Mail app on my iOS device. When I do that, I get the following error
"Missing/bad file : ta.key : cannot open for read: /var/mobile/Containers/Data/Application/..."
How do I correctly import the .ovpn into the OpenVPN Connect app on iOS?
Re: Can't import .ovpn file into OpenVPN Connect (iOS) using Mail
Posted: Thu Sep 14, 2017 11:07 am
by bwanajag
I found a solution:
I removed the line "tls-auth ta.key 1", and I moved the line "key-direction 1" to just above the "<tls-auth>".
Re: Can't import .ovpn file into OpenVPN Connect (iOS) using Mail
Posted: Wed Jul 25, 2018 1:41 am
by tlkidd
Wanted to drop a note and say thanks for the fix. Same problem here.
Re: Can't import .ovpn file into OpenVPN Connect (iOS) using Mail
Posted: Mon Apr 20, 2020 3:05 pm
by goqhan
bwanajag wrote: ↑Thu Sep 14, 2017 11:07 am
I found a solution:
I removed the line "tls-auth ta.key 1", and I moved the line "key-direction 1" to just above the "<tls-auth>".
It really worked, thanks
Re: Can't import .ovpn file into OpenVPN Connect (iOS) using Mail
Posted: Sun Feb 07, 2021 6:05 pm
by tipoti
bwanajag wrote: ↑Thu Sep 14, 2017 11:07 am
I found a solution:
I removed the line "tls-auth ta.key 1", and I moved the line "key-direction 1" to just above the "<tls-auth>".
Can you give detail about it? I couldnt understand clearly
Re: Can't import .ovpn file into OpenVPN Connect (iOS) using Mail
Posted: Thu Jan 06, 2022 8:25 pm
by nreaction
The proper way to fix: create inline .ovpn file. You want the .ovpn file to include key and cert info all in 1 file instead of 3 files(p12, ovpn, tls.key).
Re: Can't import .ovpn file into OpenVPN Connect (iOS) using Mail
Posted: Sun Mar 24, 2024 5:52 pm
by lcreid
I commented out these lines from the _client_ config file before generating the
file:
Code: Select all
# ca ca.crt
# cert client.crt
# key client.key
I suspect that the Macos client looks for the files on the Mac, even though they're included in the
file. And by commenting those lines out, it only looks for the keys in the
file.