I've following the steps detailed in the description and right when I save the VPN configuration in the system Settings the VPN profile is highlighted in red saying that requires an update. I've seen in several places that the information stored in providerConfiguration property read from the .ovpn file is stored as String and in other cases as Data directly raw from the file, which one is the correct one?
I am trying to establish a connection by only using a .ovpn file and a certificate that I download from a given URL. The latter is only installed, no other operation is done in the code.
In my .ovpn file I have several certificates and a private key with a parameter specifying remote-cert-tls server. I do not have to authenticate but do I have to install previously the certificate from the provided URL or can I use the one in the .ovpn file.
Also the PacketTunnelProvider class that inherits from NEPacketTunnelProvider in the Network Extension class never gets called. Is this a problem? My connection status always iterates between disconnected and connecting and can't debug that anywhere.
All the .plist files are configured correctly and the Network Extension's target .plist bundle identifier is a child from the main app's bundle identifier.
Careful when using Xcode betas. My main app target was set to deploy on iOS 11 and my target was iOS 13 testing it on a iOS 12.4 device so my Network Extension it wouldn't be ever called.
I've following the steps detailed in the description and right when I save the VPN configuration in the system Settings the VPN profile is highlighted in red saying that requires an update. I've seen in several places that the information stored in
providerConfiguration
property read from the.ovpn
file is stored asString
and in other cases asData
directly raw from the file, which one is the correct one?I am trying to establish a connection by only using a
.ovpn
file and a certificate that I download from a given URL. The latter is only installed, no other operation is done in the code.My ViewController with all the code is here.
In my
.ovpn
file I have several certificates and a private key with a parameter specifyingremote-cert-tls server
. I do not have to authenticate but do I have to install previously the certificate from the provided URL or can I use the one in the.ovpn
file.Also the
PacketTunnelProvider
class that inherits fromNEPacketTunnelProvider
in theNetwork Extension
class never gets called. Is this a problem? My connection status always iterates between disconnected and connecting and can't debug that anywhere.All the .plist files are configured correctly and the Network Extension's target .plist bundle identifier is a child from the main app's bundle identifier.