---
title: "localIdentity(_:)"
framework: network
role: symbol
role_heading: Instance Method
path: "network/tls/localidentity(_:)"
---

# localIdentity(_:)

Set the local identity TLS uses during the handshake.

## Declaration

```swift
func localIdentity(_ identity: sec_identity_t) -> TLS
```

## Parameters

- `identity`: The local identity to be used during the TLS handshake.
