ss-abramchuk / OpenVPNAdapter

Objective-C wrapper for OpenVPN library. Compatible with iOS and macOS.
GNU Affero General Public License v3.0
482 stars 215 forks source link

Saved VPN configuration requires an update #139

Closed javierdemartin closed 5 years ago

javierdemartin commented 5 years ago

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.

My ViewController with all the code is here.

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.

javierdemartin commented 5 years ago

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.