---
title: identityData
framework: networkextension
role: symbol
role_heading: Instance Property
path: networkextension/nevpnprotocol/identitydata
---

# identityData

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

## Declaration

```swift
var identityData: Data? { get set }
```

## Discussion

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

### Authenticating the user

- [username](networkextension/nevpnprotocol/username.md)
- [passwordReference](networkextension/nevpnprotocol/passwordreference.md)
- [identityReference](networkextension/nevpnprotocol/identityreference.md)
- [identityDataPassword](networkextension/nevpnprotocol/identitydatapassword.md)
