Updated on 2024-05-07 GMT+08:00

Step 3: Configuring a Client

Prerequisites

  • You have obtained the client CA certificate and private key.
  • The client device can access the Internet.

Downloading the Client Configuration

  1. On the P2C VPN Gateways page, locate the target VPN gateway, and click Download Client Configuration in the Operation column to download the configuration package.
  2. Decompress the package to obtain the client_config.conf, client_config.ovpn, and README.md files.

    The client_config.conf file applies to the Linux operating system, and the client_config.ovpn file applies to the Windows, macOS, or Android operating systems.

Adding Certificate Information

  1. Open the client_config.ovpn file as a text file.
  2. Enter the client CA certificate content and the private key of the client CA certificate in between <cert></cert> and <key></key> tags, respectively.
    <cert>
    Client CA certificate content
    </cert>
    <key>
    Private key of the client CA certificate
    </key>
  3. Save the file and exit.

Installing the Client Software and Importing the Configuration File

This example describes how to configure a client in the Windows operating system. The configuration process varies according to the type and version of the VPN client software.

  • Operating system: Windows 10
  • Client software: OpenVPN Connect 3.3.4 (2600)
  1. Download OpenVPN Connect from the OpenVPN official website, and install it as prompted.
  2. Start the OpenVPN Connect client, click BROWSE on the FILE tab page, and upload the client configuration file.
    Figure 1 Uploading the configuration file
  3. Click CONNECT to establish a VPN connection. If information similar to the following is displayed, the connection is successfully established.
    Figure 2 Connection established