VPN connection each time fails without .mobileconfig

I am create VPN profile programmatically using NEVPNManager all looking good.

When I am try connecting to VPN each time, connection fails but if I install to system, file .mobileconfig and then try connect all work good. Also I am try by hand download certificate from (developer.apple.com - > Certificates, Identifiers & Profiles) and then install is, all work good.

Inside project I did put file .p12 with certificate and load it using "Bundle.main.url".

It's problem appears because app can't install certificate to the iphone system or?

I am need that when user install app it can use vpn immediately, without downloading .mobileconfig and then install it to system.

How solved this problem ? Only way which exist it buy certificate from CA which will be inside system or I am just did something wrong?

I am don't understand where mistakes and how solve this problem)
Answered by Systems Engineer in 652495022
Typically you would use a digital identity (key and n certificates) that is produced by your VPN server for client authentication in this context and not an identity that is exported from your developer account. To get a better look at your situation, please open a TSI and either myself of Quinn can get a look at your project and provide assistance on where to go from there.


Matt Eaton
DTS Engineering, CoreOS
meaton3@apple.com
Accepted Answer
Typically you would use a digital identity (key and n certificates) that is produced by your VPN server for client authentication in this context and not an identity that is exported from your developer account. To get a better look at your situation, please open a TSI and either myself of Quinn can get a look at your project and provide assistance on where to go from there.


Matt Eaton
DTS Engineering, CoreOS
meaton3@apple.com
VPN connection each time fails without .mobileconfig
 
 
Q