---
title: Help Transferring the .ovpn File to iOS
canonical: https://openvpn.net/connect-docs/help-transferring-ovpn-ios/
product: OpenVPN Connect Docs
---

# Help Transferring the .ovpn File to iOS

> **Important**
>
> The steps below are for connecting to a generic OpenVPN server. For specific steps on importing profiles from CloudConnexa or Access Server, follow the steps on this page: [Install OpenVPN Connect on iOS](https://openvpn.net/connect-docs/ios-installation-guide.md).
>
> If you're looking for a connection profile from your iOS device, contact your VPN service provider as detailed here: [How to Get Your Connection Profile](https://openvpn.net/connect-docs/get-connection-profile.md).

If you're having trouble importing a profile on iOS, try these steps:

1. Save the .ovpn file to your macOS desktop.
2. Connect to your iPhone or iPad using a USB or USB-C cable or Wi-Fi.
3. In Finder (on your Mac), select iPhone.
4. Select Files.
5. Locate the OpenVPN directory.

   > **Important**
   >
   > OpenVPN Connect must already be installed on your mobile device.
6. Drag the .ovpn file from your desktop to the OpenVPN location.
7. Launch OpenVPN Connect on your mobile device.
8. Tap **Add**, then **File**.
   - “1 new OpenVPN profiles are available for import” displays.
9. Tap Add.

> **Important**
>
> Profiles must be UTF-8 (or ASCII) and under 256 KB in size.

Also, consider using the **unified** format for OpenVPN profiles which embeds all certs and keys into the .ovpn file. This eases the management of the OpenVPN configuration as it integrates all configuration elements into a single file.

For example, a traditional OpenVPN profile might specify certs and keys as follows:

```
ca ca.crt
cert client.crt
key client.key
tls-auth ta.key 1
```

You can convert this usage to unified form by pasting the content of the certificate and key files directly into the OpenVPN profile as follows using an XML-like syntax:

```
<ca>
-----BEGIN CERTIFICATE-----
MIIBszCCARygAwIBAgIE...
. . .
/NygscQs1bxBSZ0X3KRk...
Lq9iNBNgWg==
-----END CERTIFICATE-----
</ca>

<cert>
-----BEGIN CERTIFICATE-----
. . .
</cert>

<key>
-----BEGIN RSA PRIVATE KEY-----
. . .
</key>

key-direction 1
<tls-auth>
-----BEGIN OpenVPN Static key V1-----
. . .
</tls-auth>
```

Another approach to eliminate certificates and keys from the OpenVPN profile is using the [iOS Keychain](https://openvpn.net/connect-docs/import-a-certificate.md).

> **Note**
>
> When converting **tls-auth** to unified format, check if there is a second parameter after the filename (usually a 0 or 1). This **key-direction** parameter must be specified as a standalone directive when **tls-auth** is converted to unified format. For example, if the parameter is 1, add this line to the profile:
>
> ```
> key-direction 1
> ```
>
> If there is no second parameter to **tls-auth**, you must add this line to the profile:
>
> ```
> key-direction bidirectional
> ```

---

Prev: [Using Mobileconfig Profiles](https://openvpn.net/connect-docs/mobileconfig-profile.md)
Next: [Help Transferring a Profile to Android](https://openvpn.net/connect-docs/trouble-importing-profile-android.md)
Index: https://openvpn.net/connect-docs/llms.txt
