IOS: Failed to Parse Profile error. Ca.crt, client.crt client.key

Official client software for OpenVPN Access Server and OpenVPN Cloud.
Post Reply
campbellav
OpenVpn Newbie
Posts: 2
Joined: Thu Jun 10, 2021 10:16 pm

IOS: Failed to Parse Profile error. Ca.crt, client.crt client.key

Post by campbellav » Thu Jun 10, 2021 11:11 pm

New to group.
Do Only Good Everyday


I am trying to use OpenVPN on my IOS.
I get Failed to Parse profile
When compared to TincanTech expample I
Searched a bunch and only found a couple posts with similar info.
Here is my Openfile.

client
dev tun
proto udp
remote 73.243.75.11 12973
resolv-retry infinite
nobind
persist-key
persist-tun
ca ca.crt
cert client.crt
key client.key
cipher AES-128-CBC
comp-lzo
verb 5

I tried Passepartout and got this message
the configuration file contains unsupported option (external file: "ca ca.crt"

Thanks in adavance

TinCanTech
OpenVPN Protagonist
Posts: 11137
Joined: Fri Jun 03, 2016 1:17 pm

Re: IOS: Failed to Parse Profile error. Ca.crt, client.crt client.key

Post by TinCanTech » Thu Jun 10, 2021 11:30 pm


sero9019
OpenVpn Newbie
Posts: 1
Joined: Tue Feb 08, 2022 2:19 pm

Re: IOS: Failed to Parse Profile error. Ca.crt, client.crt client.key

Post by sero9019 » Tue Feb 08, 2022 2:23 pm

In case someone stumbles into this issue.

you need to delete these entries in your client.ovpn file:

ca ca.crt
cert client.crt
key client.key

cheers

taxelas
OpenVpn Newbie
Posts: 5
Joined: Thu Jul 27, 2017 8:42 am

Re: IOS: Failed to Parse Profile error. Ca.crt, client.crt client.key

Post by taxelas » Mon May 09, 2022 9:46 pm

What worked for me is to include certificates in the .ovpn file.
to do so I copy pasted the text from certificates into ovpn file and delete links to the file certificates:

Code: Select all

 ca ca.crt
 cert client.crt
 key client.key
*no "inline" reference is needed
certificates should be in the end of the config:

Code: Select all

<ca>
-----BEGIN CERTIFICATE-----
XXXXXXXXX
-----END CERTIFICATE-----
</ca>

<cert>
-----BEGIN CERTIFICATE-----
XXXXXXX
-----END CERTIFICATE-----
</cert>

<key>
-----BEGIN RSA PRIVATE KEY-----
XXXXXXX
-----END RSA PRIVATE KEY-----
</key>

unominda_admins
OpenVpn Newbie
Posts: 1
Joined: Tue Dec 20, 2022 8:39 am

Re: IOS: Failed to Parse Profile error. Ca.crt, client.crt client.key

Post by unominda_admins » Tue Dec 20, 2022 8:40 am

Hi, thanks really a lot!!!!
taxelas wrote:
Mon May 09, 2022 9:46 pm
What worked for me is to include certificates in the .ovpn file.
to do so I copy pasted the text from certificates into ovpn file and delete links to the file certificates:

Code: Select all

 ca ca.crt
 cert client.crt
 key client.key
*no "inline" reference is needed
certificates should be in the end of the config:

Code: Select all

<ca>
-----BEGIN CERTIFICATE-----
XXXXXXXXX
-----END CERTIFICATE-----
</ca>

<cert>
-----BEGIN CERTIFICATE-----
XXXXXXX
-----END CERTIFICATE-----
</cert>

<key>
-----BEGIN RSA PRIVATE KEY-----
XXXXXXX
-----END RSA PRIVATE KEY-----
</key>

Post Reply