---
title: DTLS.PeerAuthentication.optional
framework: Network
role: symbol
role_heading: Case
platforms: [iOS 27.0+, iPadOS 27.0+, Mac Catalyst 27.0+, macOS 27.0+, tvOS 27.0+, visionOS 27.0+, watchOS 27.0+]
path: network/dtls/peerauthentication/optional
---

# DTLS.PeerAuthentication.optional

Requests the peer certificate, but if none is provided, proceed with the connection.

## Declaration

```swift
case optional
```

## Discussion

Discussion This is for servers. Clients will ignore this option.
