Help Center/ Virtual Private Network/ Troubleshooting/ P2C VPN/ Client Connection Failures/ The Client Log Contains "TLS Error: TLS handshake failed"
Updated on 2024-12-26 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

  • The imported client CA certificate is incorrect.

    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.

  • The certificate and private key in the configuration file are incorrect.

    Copy the correct client certificate and private key to the client configuration file, and reconnect the client to the VPN gateway.