Page 1 of 1

TLS Handshake Error - Ubuntu 14.04

Posted: Fri Apr 03, 2015 10:30 pm
by ubuntu14
I am trying to connect to my OpenVPN that I set up today, but I am getting a TLS Handshake error. I am at a loss and would be grateful for any assistance whatsoever.

Terminal log:

Code: Select all

 [EPOLL] [PKCS11] [eurephia] [MH] [IPv6] built on Dec  1 2014
Fri Apr  3 15:17:49 2015 Socket Buffers: R=[212992->131072] S=[212992->131072]
Fri Apr  3 15:17:49 2015 UDPv4 link local: [undef]
Fri Apr  3 15:17:49 2015 UDPv4 link remote: [AF_INET]134.53.163.37:1194
Fri Apr  3 15:18:49 2015 TLS Error: TLS key negotiation failed to occur within 60 seconds (check your network connectivity)
Fri Apr  3 15:18:49 2015 TLS Error: TLS handshake failed
Fri Apr  3 15:18:49 2015 SIGUSR1[soft,tls-error] received, process restarting
Fri Apr  3 15:18:49 2015 Restart pause, 2 second(s)
Fri Apr  3 15:18:51 2015 Socket Buffers: R=[212992->131072] S=[212992->131072]
Fri Apr  3 15:18:52 2015 UDPv4 link local: [undef]
Fri Apr  3 15:18:52 2015 UDPv4 link remote: [AF_INET]134.53.163.37:1194
Fri Apr  3 15:19:52 2015 TLS Error: TLS key negotiation failed to occur within 60 seconds (check your network connectivity)
Fri Apr  3 15:19:52 2015 TLS Error: TLS handshake failed
Fri Apr  3 15:19:52 2015 SIGUSR1[soft,tls-error] received, process restarting
Fri Apr  3 15:19:52 2015 Restart pause, 2 second(s)
Fri Apr  3 15:19:54 2015 Socket Buffers: R=[212992->131072] S=[212992->131072]
Fri Apr  3 15:19:54 2015 UDPv4 link local: [undef]
Fri Apr  3 15:19:54 2015 UDPv4 link remote: [AF_INET]134.53.163.37:1194
This is my server configuration

Code: Select all

port 1194
proto udp
dev tun
ca ca.crt
cert alpha.crt
key alpha.key  # This file should be kept secret
dh dh2048.pem
server 10.8.0.0 255.255.255.0
ifconfig-pool-persist ipp.txt
keepalive 10 120
comp-lzo
persist-key
persist-tun
status openvpn-status.log
verb 3
push "redirect-gateway def1"
push "dhcp-option DNS 10.8.0.1"
Client configuration

Code: Select all

port 1194
proto udp
dev tun
ca ca.crt
cert ubuntu.crt
key ubuntu.key  # This file should be kept secret
dh dh2048.pem
server 10.8.0.0 255.255.255.0
ifconfig-pool-persist ipp.txt
keepalive 10 120
comp-lzo
persist-key
persist-tun
status openvpn-status.log
push "redirect-gateway def1"
push "dhcp-option DNS 10.8.0.1"

Re: TLS Handshake Error - Ubuntu 14.04

Posted: Sun Apr 05, 2015 6:39 pm
by maikcat
please post your client config,

both posted configs contains server directive :roll:


also post logs from BOTH sides.

Michael.