Connect to a VPN with certificate - iOS/Swift
问题 I am making a VPN connection that requires the certificate to authentication. The code below is how i set the configuration that VPN requires. The parameter identityData is where i put my certificate as Data. func setupVPN(){ guard let vpnManager = NEVPNManager.shared() else { return } vpnManager.loadFromPreferences { error in var hasProtocolConfig = false; if #available(iOS 9, *) { hasProtocolConfig = self.vpnManager.protocolConfiguration != nil } else { hasProtocolConfig = self.vpnManager.