<!--
{
  "availability" : [
    "iOS: 11.0.0 -",
    "iPadOS: 11.0.0 -",
    "macCatalyst: 13.1.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "NetworkExtension",
  "identifier" : "/documentation/NetworkExtension/NEHotspotEAPSettings/trustedServerNames",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "Network Extension"
    ],
    "preciseIdentifier" : "c:objc(cs)NEHotspotEAPSettings(py)trustedServerNames"
  },
  "title" : "trustedServerNames"
}
-->

# trustedServerNames

An array of server certificate common name strings used to verify a server’s certificate.

```
var trustedServerNames: [String] { get set }
```

## Discussion

If you don’t configure trusted EAP server certificates using the [`setTrustedServerCertificates(_:)`](/documentation/NetworkExtension/NEHotspotEAPSettings/setTrustedServerCertificates(_:)) method, then you use this property to allow the EAP peer to match the Common Name in the server’s certificate with the strings configured in this property.

Any server name string may contain asterisk wildcards in constructions such as `*.mycompany.net`.

---

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)