<!--
{
  "documentType" : "article",
  "framework" : "Network",
  "identifier" : "/documentation/Network/tls-options",
  "metadataVersion" : "0.1.0",
  "role" : "collectionGroup",
  "title" : "TLS Options"
}
-->

# TLS Options

Configure options for connections that use Transport Layer Security.

## Topics

### Creating TLS Connections

[`nw_protocol_copy_tls_definition`](/documentation/Network/nw_protocol_copy_tls_definition())

Accesses the system definition of the Transport Layer Security protocol.

[`nw_tls_create_options`](/documentation/Network/nw_tls_create_options())

Initializes a default set of TLS connection options.

[`nw_tls_copy_sec_protocol_options`](/documentation/Network/nw_tls_copy_sec_protocol_options(_:))

Accesses the handshake security options TLS will use.

### Inspecting TLS State

[`nw_protocol_metadata_is_tls`](/documentation/Network/nw_protocol_metadata_is_tls(_:))

Checks whether a metadata object contains TLS connection state.

[`nw_tls_copy_sec_protocol_metadata`](/documentation/Network/nw_tls_copy_sec_protocol_metadata(_:))

Accesses the result of the TLS handshake.



---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)