OpenVPN: “TLS key negotiation failed” / “TLS handshake failed”
OpenVPN troubleshooting
Updated
What you see
The OpenVPN client never connects, and its log shows:
TLS Error: TLS key negotiation failed to occur within 60 seconds (check your network connectivity) TLS Error: TLS handshake failed
What it means
Your client sent its first handshake packets and got no usable answer for a full minute. A server set up with tls-auth or tls-crypt, as most install scripts do, ignores packets it can't authenticate, so a wrong key looks exactly like a blocked port: silence.
Quick fix
Check that the server's OpenVPN port (UDP 1194 by default) is open, and that the proto and remote lines in your .ovpn file match the server. Then make sure the .ovpn file carries the server's current tls-crypt or tls-auth key.
Causes and how to fix them
1. The port is blocked, or OpenVPN isn't running
Open the port in your hosting company's firewall and the server's own, then check that OpenVPN is listening. The service name depends on how it was installed; openvpn-server@server is common:
sudo systemctl status openvpn-server@server sudo ss -ulpn | grep 1194 sudo ufw allow 1194/udp
2. UDP and TCP don't match
A client set to proto udp can never talk to a server set to proto tcp, or the other way round. The proto and port in your .ovpn file must match the server's config:
grep -E '^(proto|port)' /etc/openvpn/server/server.conf
3. The tls-crypt or tls-auth key doesn't match
If the server uses tls-crypt or tls-auth, the key block inside your .ovpn file must be the server's current key. With tls-auth, the client also needs key-direction 1 (the server uses 0). Reinstalling the server creates new keys, so every old .ovpn file stops working; export a fresh one for each device.
4. Your network blocks OpenVPN
OpenVPN's handshake is easy to recognize, and many workplaces, hotels and countries block it. If the profile works on another network, this is the cause. Running OpenVPN over TCP 443 sometimes gets through; on networks that inspect traffic, it usually doesn't for long.
5. Or skip the debugging: move to WireGuard
If you're fixing OpenVPN because it's what you set up years ago, WireGuard is the simpler choice today. It's faster, has far fewer settings, and a client config is one short file or QR code — no certificates or tls-crypt keys to keep in sync. On networks that block VPNs, AmneziaWG or VLESS + Reality get through where OpenVPN doesn't. WireGuard uses a different port (UDP 51820), so you can run both side by side while you move your devices over.
Using Nullsify?
Nullsify doesn't run OpenVPN. It sets up WireGuard, AmneziaWG or VLESS + Reality on your VPS from a web dashboard and gives each person their own config or QR code. The free plan covers 1 server and 5 users, so you can try it on a fresh VPS before you retire OpenVPN.
Free for 1 server. Bring your own VPS — Nullsify configures WireGuard, AmneziaWG or VLESS on it for you.
Related problems
- Handshake did not complete WireGuard
- Works on Wi-Fi, not mobile data Any protocol
- Stops working after a few minutes Any protocol