Help Center/ Virtual Private Network/ Troubleshooting/ Client Connection Failures/ The Client Log Contains "TLS Error: TLS handshake failed"
Updated on 2025-02-05 GMT+08:00

The Client Log Contains "TLS Error: TLS handshake failed"

Applicable Client

  • Linux
  • Windows OpenVPN GUI

Symptom

A client cannot connect to a P2C VPN gateway, and the log contains the following error information:

TLS Error: TLS handshake failed

Possible Causes

The certificate and private key in the client configuration file do not match the client CA certificate imported on the Server tab page of the VPN gateway.

Procedure

  1. Check whether the imported client CA certificate is correct.

    If the certificate and private key in the configuration file do not match the imported client CA certificate, import the correct CA certificate on the Server tab page of the VPN gateway, delete the incorrect CA certificate, and reconnect the client to the VPN gateway.

  2. Check whether the certificate and private key in the configuration file are correct.

    If the certificate and private key in the configuration file do not match, copy the correct client certificate content and private key to the client configuration file, and reconnect the client to the VPN gateway.