Page 1 of 1

tls-auth

Posted: Thu Apr 04, 2013 5:09 pm
by alchemyx
Hello,

I am trying to use OpenVPN Connect on iOS. I have working setup from Windows boxes,
Linux boxes and Android phones, but have much trouble with iPhone. I created following config:

Code: Select all

remote vpn.acsystemy.pl 1194
remote vpn2.acsystemy.pl 1194
client
fragment 1000
dev tun
proto udp
resolv-retry infinite
nobind
user nobody
group nogroup
persist-key
persist-tun
ns-cert-type server
tls-auth ta.key 1
cipher AES-256-CBC
verb 3

<ca>
-----BEGIN CERTIFICATE-----
xxx
-----END CERTIFICATE-----
</ca>

<cert>
-----BEGIN CERTIFICATE-----
xxx
-----END CERTIFICATE-----
</cert>

<key>
-----BEGIN RSA PRIVATE KEY-----
xxx
-----END RSA PRIVATE KEY-----
</key>
But I have no idea where to put ta.key - should I embedd it in config or send it as a file? Also when sending ovpn file (via iTunes) it doesn't get detected by OpenVPN Connect on my phone. How to make it see that file?

Thanks!

Re: tls-auth

Posted: Fri Apr 05, 2013 9:06 am
by alchemyx
After some googling i found out that it was <tls-auth> and key-direction 1. So something like this:

Code: Select all

key-direction 1

<tls-auth>
... contents of ta.key
</tls-auth>
Sorry for trouble