Updated on 2025-05-14 GMT+08:00

Configuring an iOS Client

Procedure

  1. Search for "OpenVPN Connect" in the App Store, download the software, and install it.
  2. Download the client configuration file.

    • Method 1: Download the client configuration file on a PC.
    • Method 2: Download the client configuration file on a mobile phone.
    1. Log in to the management console.
    2. Click in the upper left corner and select the desired region and project.
    3. Click in the upper left corner, and choose Networking > Virtual Private Network.
    4. In the navigation pane on the left, choose Virtual Private Network > Enterprise – VPN Gateways.
    5. Click the P2C VPN Gateways tab, and click Download Client Configuration in the Operation column of the target VPN gateway.

      The downloaded client configuration file is client_config.zip.

      If you download the client configuration file on a PC, you need to upload the file to the Android system.

  3. On your PC, decompress client_config.zip to a specified directory, for example, D:\.

    After the decompression, the client_config.ovpn and client_config.conf files are generated.

  4. Open the client_config.ovpn file using Notepad or Notepad++.
  5. Add the client certificate and private key to the file.

    Enter the client certificate content and the corresponding private key in between <cert></cert> and <key></key> tags, respectively.
    <cert>
    -----BEGIN CERTIFICATE-----
    Client certificate content
    -----END CERTIFICATE-----
    </cert>
    
    <key>
    -----BEGIN PRIVATE KEY-----
    Client private key
    -----END PRIVATE KEY-----
    </key>

  6. Save the .ovpn configuration file.

    If you perform subsequent operations on iOS, you need to upload the .ovpn configuration file that has been configured on the PC to the iOS system.

  7. Start the OpenVPN Connect client.

    • Method 1: Start the client on your PC.
    • Method 2: Start the client on your mobile phone.

  8. Import the .ovpn configuration file.

    Add the client configuration as prompted.

  9. Establish a VPN connection.

    If information similar to the following is displayed, the connection is successfully established.
    Figure 1 Connection established