Help Center/ Virtual Private Network/ Troubleshooting/ P2C VPN/ Client Connection Failures/ The Client Log Contains "error:068000A8:asn1 encoding routines:wrong tag"
Updated on 2024-12-26 GMT+08:00

The Client Log Contains "error:068000A8:asn1 encoding routines:wrong tag"

Applicable Client

  • Linux
  • Windows OpenVPN GUI
  • Windows OpenVPN Connect

Symptom

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

error:068000A8:asn1 encoding routines:wrong tag

Possible Causes

The client certificate and private key do not match.

Procedure

Copy the correct client certificate and private key to the client configuration file, and reconnect the client to the VPN gateway. An example is as follows:

<cert>
-----BEGIN CERTIFICATE-----
Client certificate content
-----END CERTIFICATE-----
</cert>

<key>
-----BEGIN PRIVATE KEY-----
Client private key
-----END PRIVATE KEY-----
</key>