iOS OpenVPN Connect Error - read length inconsistency

If you’ve had the same error as what’s described here, then it just means that you have to insert the given key files inline into the configuration.

The error usually gets cut off as well in portrait mode so it looks like this:

1
Profile error : read length inconsistency: /var/mobile..

Usually with Tunnelblick you just bundle the ca.crt, client.key and client.crt into a folder and rename it as server_name.tblk but that will not work for OpenVPN connect.

Instead do this

1
2
3
4
5
6
#ca ca.crt
<ca>
-----BEGIN CERTIFICATE-----
.
.
</ca>

And so on.