I have recently setup an OpenVPN Access Server and purchased a 10 user license. Works great for my desktop needs.

I've been trying to get VPN On Demand working on IOS with a vpn user enabled for Auto Connect.
In iPhone Configuration Utility, I've created my certificate credential using the following way:
cd /usr/local/openvpn_as/scripts
./sacli -a openvpn -o /root/exportedFiles/ --cn user_AUTOLOGIN get5
And then created my pkcs12 file with:
openssl pkcs12 -export -in client.crt -inkey client.key -out clientUser.p12
Then took my clientUser.p12, installed it in Windows, then I was able to get the p.12 certificate credential installed.
I am using net.openvpn.OpenVPN-Connect.vpnplugin identifier using the "Custom SSL" Connection Type.
In my Custom Data:
dev tun
port 943
proto tcp
remote myprivateserver 943
verb 3
for the "ca", I took my ca.crt file and removed all the spaces, making one long
-----BEGIN CERTIFICATE-----...-----END CERTIFICATE-----
I get no error when installing the profile on my iPhone.
As I try to open the VPN connection, in my logs it shows:
vpnagent[804] <Error>: LOG: ----- OpenVPN Start (iOS 32-bit) -----
vpnagent[804] <Error>: LOG: Keychain Cert Extraction: 1 certificate(s) found
vpnagent[804] <Error>: OpenVPNCoreThread error: option_error: option 'ca' (4) must have exactly one parameter
vpnagent[804] <Error>: LOG: EVENT: CORE_ERROR option_error: option 'ca' (4) must have exactly one parameter [ERR]
Has anyone seen this error before?