---
title: rawPublicKeys
framework: Network Extension
role: symbol
role_heading: Instance Property
platforms: [iOS 17.0+, iPadOS 17.0+, Mac Catalyst 17.0+, macOS 14.0+, tvOS 17.0+, visionOS 1.0+]
path: networkextension/nerelay/rawpublickeys
---

# rawPublicKeys

An array of TLS raw public keys that the relay server can present during the TLS handshake.

## Declaration

```swift
var rawPublicKeys: [Data]? { get set }
```

## Discussion

Discussion If you set one or more keys, the raw public keys are used to authenticate the relay server. If no keys are set, or if the array is nil, default TLS server certificate evaluation is used.

## See Also

### Configuring server properties

- [http3RelayURL](networkextension/nerelay/http3relayurl.md)
- [http2RelayURL](networkextension/nerelay/http2relayurl.md)
- [dnsOverHTTPSURL](networkextension/nerelay/dnsoverhttpsurl.md)
