Hi
I am having the same problem with my iPad. OpenVPN is working fine on my Mac, PC, and Android, but on IOS I am getting the error:
"OpenVPN error : PolarSSL : error parsing ca certificate : X509 - The certificate format is invalid, e.g. different type expected".
My config file looks like:
client
dev tun
proto udp
remote xxx.host.net 443
float
comp-lzo no
keepalive 15 60
auth-user-pass
ns-cert-type server
<ca>
-----BEGIN CERTIFICATE-----
REDACTEDAp2gAwIBAgIJAMbTH300dCrMMA0GCSqGSIb3DQEBBQUAMHAxCzAJBgNV
BAYTAlRXMQswCQYDVQQIEwJUVzEPMA0GA1UEBxMGVGFpcGVpMQ0wCwYDVQQKEwRB
U1VTMREwDwYDVQQDEwhSVC1BQzY2VTEhMB8GCSqGSIb3DQEJARYSbWVAbXlob3N0
Lm15ZG9tYWluMB4XDTE0MDcwNzA0MDgwM1oXDTI0MDcwNDA0MDgwM1owcDELMAkG
A1UEBhMCVFcxCzAJBgNVBAgTAlRXMQ8wDQYDVQQHEwZUYWlwZWkxDTALBgNVBAoT
BEFTVVMxETAPBgNVBAMTCFJULUFDNjZVMSEwHwYJKoZIhvcNAQkBFhJtZUBteWhv
c3QubXlkb21haW4wgZ8wDQYJKoZIhvcNAQEBBQADgY0AMIGJAoGBANVewAMtPdpn
REDACTED
-----END CERTIFICATE-----
</ca>
<cert>
paste client certificate data here
</cert>
<key>
paste client key data here
</key>
resolv-retry infinite
nobind
I had a look at
https://community.openvpn.net/openvpn/wiki/IOSinline but I am not recognizing what is missing.
My iPad is running IOS 7.1.2, and I am using the newest OpenVPN client from the App Store. If anyone can help me resolve this issue it would be greatly appreciated.
Thanks
Robert