SecItemDelete failed: -25300
public func configRemove()
{
self.providerManager.removeFromPreferences{ error in
if let error = error {
print("##configRemove (error)")
} else {
print("##configRemove (error)")
}
}
}
VPN settings are cleared. I got error is nil.
but i got this log
SecItemDelete failed: -25300
I don`t use keychain
my ovpn file already contains the certificate.
here is my config code
let tunnelProtocol = NETunnelProviderProtocol()
tunnelProtocol.username = ""
tunnelProtocol.serverAddress = ""
tunnelProtocol.providerBundleIdentifier = BundleId // bundle id of the network extension target
tunnelProtocol.providerConfiguration = ["ovpn": data]
tunnelProtocol.disconnectOnSleep = false
self.providerManager.protocolConfiguration = tunnelProtocol
self.providerManager.localizedDescription = "****" // the title of the VPN profile which will appear on Settings
self.providerManager.isEnabled = true
There is no problem with the VPN-connection
what should I do?
SecItemDelete failed: -25300
public func configRemove()
{
self.providerManager.removeFromPreferences{ error in
if let error = error {
print("##configRemove (error)")
} else {
print("##configRemove (error)")
}
}
}
VPN settings are cleared. I got error is nil.
but i got this log
SecItemDelete failed: -25300
I don`t use keychain
my ovpn file already contains the certificate.
here is my config code
let tunnelProtocol = NETunnelProviderProtocol()
tunnelProtocol.username = ""
tunnelProtocol.serverAddress = ""
tunnelProtocol.providerBundleIdentifier = BundleId // bundle id of the network extension target
tunnelProtocol.providerConfiguration = ["ovpn": data]
tunnelProtocol.disconnectOnSleep = false
self.providerManager.protocolConfiguration = tunnelProtocol
self.providerManager.localizedDescription = "****" // the title of the VPN profile which will appear on Settings
self.providerManager.isEnabled = true
There is no problem with the VPN-connection
what should I do?