Certificate import via iTunes
-
- OpenVpn Newbie
- Posts: 5
- Joined: Fri Jan 18, 2013 7:49 pm
Certificate import via iTunes
Hi,
I've exportered my ovpn and .crt file from my NAS.
Via iTunes I drop both of them in the OpenVPN app documents.
OpenVPN recognizes the ovpn file, but I still need to select a .crt file. When I hit this button, it says:
! No certificates are present in ...
Is this a user or application problem?
Best regards,
P
I've exportered my ovpn and .crt file from my NAS.
Via iTunes I drop both of them in the OpenVPN app documents.
OpenVPN recognizes the ovpn file, but I still need to select a .crt file. When I hit this button, it says:
! No certificates are present in ...
Is this a user or application problem?
Best regards,
P
-
- OpenVpn Newbie
- Posts: 5
- Joined: Fri Jan 18, 2013 7:49 pm
Re: Certificate import via iTunes
No certificates are present in Keychain.pcm wrote:Hi,
I've exportered my ovpn and .crt file from my NAS.
Via iTunes I drop both of them in the OpenVPN app documents.
OpenVPN recognizes the ovpn file, but I still need to select a .crt file. When I hit this button, it says:
! No certificates are present in ...
Is this a user or application problem?
Best regards,
P
-
- OpenVpn Newbie
- Posts: 6
- Joined: Fri Jan 18, 2013 9:16 pm
Re: Certificate import via iTunes
Yes, I have the same issue with the server running on a Synology DS211.pcm wrote: No certificates are present in Keychain.
-
- OpenVpn Newbie
- Posts: 5
- Joined: Fri Jan 18, 2013 7:49 pm
Re: Certificate import via iTunes
Mine is also a Synology.kraades wrote: Yes, I have the same issue with the server running on a Synology DS211.
It looks like the .ovpn file is ok. I've tried to import the .crt-file in my iOS, but no luck either.
I'm using iOS 6.0.2.
-
- OpenVpn Newbie
- Posts: 6
- Joined: Fri Jan 18, 2013 9:16 pm
Re: Certificate import via iTunes
Me too. Same iOS version. Importing the crt does not help.
I also tried connecting to the Synology using the Windows 64-bit OpenVPN client that can be downloaded from this site. That works by the same principle by just copying the ca.crt and openvpn.ovpn file to the OpenVPN config directory. Then the connection is succesfull.
I also tried connecting to the Synology using the Windows 64-bit OpenVPN client that can be downloaded from this site. That works by the same principle by just copying the ca.crt and openvpn.ovpn file to the OpenVPN config directory. Then the connection is succesfull.
-
- OpenVpn Newbie
- Posts: 1
- Joined: Sat Jan 19, 2013 1:20 pm
Re: Certificate import via iTunes
Same problem and IOS version here. I use a ds212J latest firmware DSM 4.1-4668.
Also Imported ca.crt on my ipad and that also didn't help.
Also Imported ca.crt on my ipad and that also didn't help.
-
- OpenVpn Newbie
- Posts: 1
- Joined: Sat Jan 19, 2013 3:46 pm
Re: Certificate import via iTunes
Same here. IOS 6.0.2 running openvpn on pfsense. All config and certs work fine on other windows clients.
When I try to import into itunes IOS client accepts my config but I then need to select a certificate (required) but I get prompted with "No certificates are present in the Keychain"
Has anyone had any luck with this?
When I try to import into itunes IOS client accepts my config but I then need to select a certificate (required) but I get prompted with "No certificates are present in the Keychain"
Has anyone had any luck with this?
You do not have the required permissions to view the files attached to this post.
-
- OpenVpn Newbie
- Posts: 6
- Joined: Fri Jan 18, 2013 9:16 pm
Re: Certificate import via iTunes
I did some more digging...
Usually you have the following entries in the config file:
In the ovpn file that is downloaded from the Synology you only have:
I guess this is because of the following setting:
Could it be that the OpenVPN client for iOS is not compatible with this setup where no client cert and client key are required?
Usually you have the following entries in the config file:
Code: Select all
ca ca.crt
cert client.crt
key client.key
Code: Select all
ca ca.crt
Code: Select all
DS211> grep -i req /usr/syno/etc/packages/VPNCenter/openvpn/openvpn.conf
client-cert-not-required
DS211>
-
- OpenVpn Newbie
- Posts: 6
- Joined: Fri Jan 18, 2013 9:16 pm
Re: Certificate import via iTunes
I could reproduce this with the config files from the HMA VPN service.
The config files can be downloaded from this location:
http://hidemyass.com/vpn-config/vpn-config.zip
(you have to delete the second line with 'ns-cert-type server' or else it won't work)
The config files have an inline <ca>, <cert> and <key> section.
The OpenVPN app for iOS can connect to the server.
Standard profile

If you delete the <cert> and <key> just like in the ovpn file downloaded from the Syno, you have the same issues:
External certificate profile

Two options:
Fix the OpenVPN app for iOS.
-or-
Generate the client.crt and client.key on the Synology and use these in the config.
(and delete the 'client-cert-not-required' from the Syno server config)
The config files can be downloaded from this location:
http://hidemyass.com/vpn-config/vpn-config.zip
(you have to delete the second line with 'ns-cert-type server' or else it won't work)
The config files have an inline <ca>, <cert> and <key> section.
The OpenVPN app for iOS can connect to the server.
Standard profile

If you delete the <cert> and <key> just like in the ovpn file downloaded from the Syno, you have the same issues:
External certificate profile

Two options:
Fix the OpenVPN app for iOS.

-or-
Generate the client.crt and client.key on the Synology and use these in the config.
(and delete the 'client-cert-not-required' from the Syno server config)
-
- OpenVpn Newbie
- Posts: 8
- Joined: Sun Jan 20, 2013 7:53 pm
Re: Certificate import via iTunes
Hello,
Same issue for me too. Please, fix the IOS app
Kraades, how do you do to generate the client.crt and client.key on the Synology and use these in the config ?
Same issue for me too. Please, fix the IOS app


Kraades, how do you do to generate the client.crt and client.key on the Synology and use these in the config ?
-
- OpenVpn Newbie
- Posts: 2
- Joined: Wed Jan 23, 2013 8:37 am
Re: Certificate import via iTunes
Hi,
I also have the same problem with this. We are also using one CA-certificate with username & password authentication. It seems that the app explicitly asks for a "client.key" and "client.crt". Otherwise it just gives the notification that no certificates are present. I tried to e-mail the CA-certificate & import it through that way, iOS accepts it, but OpenVPN App still doesn't. Every other client on Mac/PC desktop or laptop/macbook works except the mobile devices.
Also could this topic be moved to the OpenVPN Connect (iOS) section? cause I just accidentally stumbled upon this topic through google. But couldn't find it in the appropriate section.
I also have the same problem with this. We are also using one CA-certificate with username & password authentication. It seems that the app explicitly asks for a "client.key" and "client.crt". Otherwise it just gives the notification that no certificates are present. I tried to e-mail the CA-certificate & import it through that way, iOS accepts it, but OpenVPN App still doesn't. Every other client on Mac/PC desktop or laptop/macbook works except the mobile devices.
Also could this topic be moved to the OpenVPN Connect (iOS) section? cause I just accidentally stumbled upon this topic through google. But couldn't find it in the appropriate section.
-
- OpenVpn Newbie
- Posts: 2
- Joined: Thu Jan 24, 2013 8:07 pm
Re: Certificate import via iTunes
good to see I'm not the only one with this problem.
I tried several different config file options without any success.
hopefully someone will find a solution soon.
thanks
I tried several different config file options without any success.
hopefully someone will find a solution soon.
thanks
-
- OpenVpn Newbie
- Posts: 10
- Joined: Wed Jan 23, 2013 4:38 am
Re: Certificate import via iTunes
Same issue here! Adding to watch this thread.
-
- OpenVpn Newbie
- Posts: 1
- Joined: Wed Jan 30, 2013 12:44 pm
Re: Certificate import via iTunes
hi,
have onyone a solution for this problem?
Thanks Andi
have onyone a solution for this problem?
Thanks Andi
-
- OpenVpn Newbie
- Posts: 12
- Joined: Wed Jan 23, 2013 10:08 am
Re: Certificate import via iTunes
Just add some random key and cert file, client sends them but server will ignore them.
Here are cert and key you can add below ones to your config.
<cert>
-----BEGIN CERTIFICATE-----
MIIB1jCCAT+gAwIBAgIEAmLSTjANBgkqhkiG9w0BAQUFADAVMRMwEQYDVQQDEwpP
cGVuVlBOIENBMB4XDTEzMDExNzAyMTExMloXDTIzMDEyMjAyMTExMlowKDEmMCQG
A1UEAxQdZnJyaWN0aW9uQGdtYWlsLmNvbV9BVVRPTE9HSU4wgZ8wDQYJKoZIhvcN
AQEBBQADgY0AMIGJAoGBALVEXIZYYu1Inmejuo4Si6Eo5AguTX5sg1pGbLkJSTR4
BXQsy6ocUnZ9py8htYkipkUUhjY7zDu+wJlUtWnVCwCYtewYfEc/+azH7+7eU6ue
T2K2IKdik1KWhdtNbaNphVvSlgdyKiuZDTCedptgWyiL50N7FMcUUMjjXYh/hftB
AgMBAAGjIDAeMAkGA1UdEwQCMAAwEQYJYIZIAYb4QgEBBAQDAgeAMA0GCSqGSIb3
DQEBBQUAA4GBABhVzSYXHlQEPNaKGmx9hMwwnNKcHgD9cCmC9lX/KR2Y+vT/QGxK
7sYlJInb/xmpa5TUQYc1nzDs9JBps1mCtZbYNNDpYnKINAKSDsM+KOQaSYQ2FhHk
bmBZk/K96P7VntzYI5S02+hOWnvjq5Wk4gOt1+L18+R/XujuxGbwnHW2
-----END CERTIFICATE-----
</cert>
<key>
-----BEGIN PRIVATE KEY-----
MIICdgIBADANBgkqhkiG9w0BAQEFAASCAmAwggJcAgEAAoGBALVEXIZYYu1Inmej
uo4Si6Eo5AguTX5sg1pGbLkJSTR4BXQsy6ocUnZ9py8htYkipkUUhjY7zDu+wJlU
tWnVCwCYtewYfEc/+azH7+7eU6ueT2K2IKdik1KWhdtNbaNphVvSlgdyKiuZDTCe
dptgWyiL50N7FMcUUMjjXYh/hftBAgMBAAECgYEAsNjgOEYVRhEaUlzfzmpzhakC
SKT8AALYaAPbYO+ZVzJdh8mIbg+xuF7A9G+7z+5ZL35lrpXKnONuvmlxkK5ESwvV
Q7EOQYCZCqa8xf3li3GUBLwcwXKtOUr3AYXhdbOh2viQdisD4Ky7H6/Nd3yMc3bu
R4pErmWeHei+l6dIwAECQQDqljNxi9babmHiei6lHaznCMg5+jfAyDXgHvO/afFr
1bDQVDTDK+64kax4E9pvDZC6B/HGse9hOUGWXTjb0WZBAkEAxdAw/14iJIUcE5sz
HDy2R0RmbUQYFjrNgBCi5tnmr1Ay1zHAs1VEF+Rg5IOtCBO50I9jm4WCSwCtN6zF
FoFVAQJAUGfBJDcZIm9ZL6ZPXJrqS5oP/wdLmtFE3hfd1gr7C8oHu7BREWB6h1qu
8c1kPlI4+/qDHWaZtQpJ977mIToJwQJAMcgUHKAm/YPWLgT31tpckRDgqgzh9u4z
e1A0ft5FlMcdFFT8BuWlblHWJIwSxp6YO6lqSuBNiuyPqxw6uVAxAQJAWGxOgn2I
fGkWLLw4WMpkFHmwDVTQVwhTpmMP8rWGYEdYX+k9HeOJyVMrJKg2ZPXOPtybrw8T
PUZE7FgzVNxypQ==
-----END PRIVATE KEY-----
</key>
Here are cert and key you can add below ones to your config.
<cert>
-----BEGIN CERTIFICATE-----
MIIB1jCCAT+gAwIBAgIEAmLSTjANBgkqhkiG9w0BAQUFADAVMRMwEQYDVQQDEwpP
cGVuVlBOIENBMB4XDTEzMDExNzAyMTExMloXDTIzMDEyMjAyMTExMlowKDEmMCQG
A1UEAxQdZnJyaWN0aW9uQGdtYWlsLmNvbV9BVVRPTE9HSU4wgZ8wDQYJKoZ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tN6zF
FoFVAQJAUGfBJDcZIm9ZL6ZPXJrqS5oP/wdLmtFE3hfd1gr7C8oHu7BREWB6h1qu
8c1kPlI4+/qDHWaZtQpJ977mIToJwQJAMcgUHKAm/YPWLgT31tpckRDgqgzh9u4z
e1A0ft5FlMcdFFT8BuWlblHWJIwSxp6YO6lqSuBNiuyPqxw6uVAxAQJAWGxOgn2I
fGkWLLw4WMpkFHmwDVTQVwhTpmMP8rWGYEdYX+k9HeOJyVMrJKg2ZPXOPtybrw8T
PUZE7FgzVNxypQ==
-----END PRIVATE KEY-----
</key>
-
- OpenVpn Newbie
- Posts: 5
- Joined: Fri Jan 18, 2013 7:49 pm
Re: Certificate import via iTunes
Things will work if it's done correctly. Do not use default Syn. certificates.
Best thing to do is, generate your own certificates (cfr. Ubuntu manuel - Openvpn).
After creations you need to adept the server & client config files and put all certificates in the correct folders. (cfr. wiki Syn. how to use your own certificates -> creating my cert on Synology NAS didn"t work because of some missing dependencies).
Via iTunes you can upload your own root cert., iphone.key and iphone.crt together with openvpn.ovpn.
Now everything is working very fine!
Best thing to do is, generate your own certificates (cfr. Ubuntu manuel - Openvpn).
After creations you need to adept the server & client config files and put all certificates in the correct folders. (cfr. wiki Syn. how to use your own certificates -> creating my cert on Synology NAS didn"t work because of some missing dependencies).
Via iTunes you can upload your own root cert., iphone.key and iphone.crt together with openvpn.ovpn.
Now everything is working very fine!
-
- OpenVpn Newbie
- Posts: 2
- Joined: Thu Jan 24, 2013 8:07 pm
Re: Certificate import via iTunes
hmmm after I added the <cert> and <key> I get the following error:
thanks
My format is *.pem do I have to convert it in some way?OpenVPN error : PolarSSL: error parsing ca certificate : X509 - The certificate format is invalid, e.g. different type expected [ERR]
thanks
-
- OpenVpn Newbie
- Posts: 10
- Joined: Wed Jan 23, 2013 4:38 am
Re: Certificate import via iTunes
Same issue - invalid cert format.
-
- OpenVpn Newbie
- Posts: 1
- Joined: Fri Feb 08, 2013 9:57 pm
Re: Certificate import via iTunes
pcm,pcm wrote:Things will work if it's done correctly. Do not use default Syn. certificates.
Best thing to do is, generate your own certificates (cfr. Ubuntu manuel - Openvpn).
After creations you need to adept the server & client config files and put all certificates in the correct folders. (cfr. wiki Syn. how to use your own certificates -> creating my cert on Synology NAS didn"t work because of some missing dependencies).
Via iTunes you can upload your own root cert., iphone.key and iphone.crt together with openvpn.ovpn.
Now everything is working very fine!
can you please explain or post the steps you took to get it to connect properly; ive tried to roughly understand and follow what you suggested but i think i missed some steps.
thanks!!
-
- OpenVpn Newbie
- Posts: 5
- Joined: Fri Jan 18, 2013 7:49 pm
Re: Certificate import via iTunes
I'll try this weekend to write things more into detail.r3zon8 wrote:pcm,pcm wrote:Things will work if it's done correctly. Do not use default Syn. certificates.
Best thing to do is, generate your own certificates (cfr. Ubuntu manuel - Openvpn).
After creations you need to adept the server & client config files and put all certificates in the correct folders. (cfr. wiki Syn. how to use your own certificates -> creating my cert on Synology NAS didn"t work because of some missing dependencies).
Via iTunes you can upload your own root cert., iphone.key and iphone.crt together with openvpn.ovpn.
Now everything is working very fine!
can you please explain or post the steps you took to get it to connect properly; ive tried to roughly understand and follow what you suggested but i think i missed some steps.
thanks!!