Instance Property

identityData

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

Declaration

var identityData: Data? { get set }

Discussion

In macOS, the system ignores this property for NEVPNProtocolIKEv2 and NETunnelProviderProtocol objects. On iOS, the system ignores this property for NETunnelProviderProtocol objects. In cases where the system ignores this property, set the identity using the identityReference property.

See Also

Accessing Common Tunnel Properties

var serverAddress: String?

The address of the tunneling server.

var username: String?

The user name 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 identityReference: Data?

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

var identityDataPassword: String?

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

var disconnectOnSleep: Bool

A flag indicating whether the VPN disconnects when the device sleeps.

var proxySettings: NEProxySettings?

The proxy settings to use for HTTP and HTTPS connections that route through the VPN.

var includeAllNetworks: Bool

A property that indicates that the system sends all network traffic over the tunnel.

var excludeLocalNetworks: Bool

A property that indicates that the system excludes all traffic destined for local networks from the tunnel.