I'm trying to connect my android to an openvpn server using inline tls-auth file.
The client configuration is the following one:
Code: Select all
client
dev tun
proto tcp
remote X.X.X.X 443
nobind
persist-key
persist-tun
ns-cert-type server
comp-lzo
verb 3
cipher AES-256-CBC
auth-user-pass
auth-retry interact
auth-nocache
reneg-bytes 549755813888
reneg-pkts 536870912
reneg-sec 28800
connect-retry-max 3
route-nopull
ca ca2.crt
cert sslcert.pem
key sslkey.pem
tls-auth [inline]
<tls-auth>
#
# 2048 bit OpenVPN static key
#
-----BEGIN OpenVPN Static key V1-----
...
-----END OpenVPN Static key V1-----
</tls-auth>
The profile and certificates files are in /sdcard/OpenVPN and when I import the profile the client return: "Error reading file referenced by profile: [inline] : cannot open: /sdcard/OpenVPN/[inline]"
Someone can help me?
P.S.: which version of OpenVPn is used in new andorid "OpenVPN Connect"?