Instance Property

identityReference

A persistent keychain reference to a keychain item containing the certificate and private key components of the tunneling protocol authentication credential.

Declaration

var identityReference: Data? { get set }

Discussion

The keychain item must have the kSecClassIdentity class. In macOS, this property is ignored for NEVPNProtocolIPSec objects. On iOS, this property is ignored for NEVPNProtocolIPSec and NEVPNProtocolIKEv2 objects. In cases where this property is ignored, the identity should be set using the identityData property.

See Also

Accessing Common Tunnel Properties

var serverAddress: String?

The address of the tunneling server

var username: String?

The username component of the tunneling protocol authentication credential.

var passwordReference: Data?

A persistent keychain reference to a keychain item containing the password component of the tunneling protocol authentication credential.

var identityData: Data?

The certificate and private key components of the tunneling protocol authentication credential, encoded in PKCS12 format.

var identityDataPassword: String?

The password to be used to decrypt the PKCS12 data set in the identityData property.

var disconnectOnSleep: Bool

A flag indicating if the VPN should be disconnected when the device sleeps.

var proxySettings: NEProxySettings?

An NEProxySettings object containing the proxy settings to be used for HTTP and HTTPS connections which are routed through the VPN.