OpenVPN-IOS
OpenVPN-IOS copied to clipboard
TLS Error: TLS handshake failed
Hi AnhTVc,
Sorry for bothering you,
I have finished building the openvpn-skrver (your full source code) with Xcode 9.4.1 for iOS10.3. However, when I tested on my iPhone (iPhone 6s), it failed with the following error:
Fri Jul 20 09:24:19 2018 OpenVPN 2.3_git arm-apple-darwin [SSL (OpenSSL)] [MH] [IPv6] built on Jun 16 2017
Fri Jul 20 09:24:19 2018 Socket Buffers: R=[196724->65536] S=[9216->65536]
Fri Jul 20 09:24:19 2018 NOTE: UID/GID downgrade will be delayed because of --client, --pull, or --up-delay
Fri Jul 20 09:24:19 2018 UDPv4 link local: [undef]
Fri Jul 20 09:24:19 2018 UDPv4 link remote: [AF_INET]192.168.0.118:1194
Fri Jul 20 09:25:19 2018 TLS Error: TLS key negotiation failed to occur within 60 seconds (check your network connectivity)
Fri Jul 20 09:25:19 2018 TLS Error: TLS handshake failed
Fri Jul 20 09:25:19 2018 SIGUSR1[soft,tls-error] received, process restarting
Fri Jul 20 09:25:19 2018 Restart pause, 2 second(s)
.............
About vpn server (192.168.0.118), I configured to make it support UDP via port 1194. Both vpnserver and the iPhone can ping together successfully. Could you teach me how to test it?
Thanks,
I think the problem involves configuration. Have you tried this configuration on another app (eg OpenVPN Connect)
Thanks for your suggestion,
I tried this configuration (.ovpn file) with openvpn app which I got from App Store and it worked well. About the openvpn-server, I had to split the configuration file to tcp.ovpn, cert.file and ca.file I'll only try openvpn on ubuntu to verify my configuration.
Again, Thank you very much for the help,