My app create VPN profile programmatically for user but connection fail each time.
I can solved this problem doing next:
I am create file .mobileconfig using AppleConfigurator and create "Certificate 2 Payloads Configured" inside this file I put file .p12 and set password for this file and file .cer.
When user install this profile only after this operation VPN connection would be establish.
Inside app I am use file .p12 for NEVPNManager( use NEVPNProtocolIKEv2 ).
How I can install file .cer programmatically inside app or need install something else?
Which advice are you can give in this situation?
I can solved this problem doing next:
I am create file .mobileconfig using AppleConfigurator and create "Certificate 2 Payloads Configured" inside this file I put file .p12 and set password for this file and file .cer.
When user install this profile only after this operation VPN connection would be establish.
Inside app I am use file .p12 for NEVPNManager( use NEVPNProtocolIKEv2 ).
How I can install file .cer programmatically inside app or need install something else?
Which advice are you can give in this situation?
What does the .cer file do? Most problems I see like this are caused by the VPN server not having a trusted certificate. In a configuration profile you can get around that by installing a custom root certificate using the com.apple.security.root payload. However, there’s no way to do this programmatically. When setting up Personal VPN using NEVPNManager, your server must have a certificate that’s trusted by the system by default.
Share and Enjoy
—
Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@apple.com"
Share and Enjoy
—
Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@apple.com"