---
title: trustedServerNames
framework: networkextension
role: symbol
role_heading: Instance Property
path: networkextension/nehotspoteapsettings/trustedservernames
---

# trustedServerNames

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

## Declaration

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

## Discussion

Discussion If you don’t configure trusted EAP server certificates using the 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.

## See Also

### Accessing EAP properties

- [isTLSClientCertificateRequired](networkextension/nehotspoteapsettings/istlsclientcertificaterequired.md)
- [supportedEAPTypes](networkextension/nehotspoteapsettings/supportedeaptypes.md)
- [NEHotspotEAPSettings.EAPType](networkextension/nehotspoteapsettings/eaptype.md)
- [username](networkextension/nehotspoteapsettings/username.md)
- [password](networkextension/nehotspoteapsettings/password.md)
- [preferredTLSVersion](networkextension/nehotspoteapsettings/preferredtlsversion.md)
- [NEHotspotEAPSettings.TLSVersion](networkextension/nehotspoteapsettings/tlsversion.md)
- [outerIdentity](networkextension/nehotspoteapsettings/outeridentity.md)
- [ttlsInnerAuthenticationType](networkextension/nehotspoteapsettings/ttlsinnerauthenticationtype-swift.property.md)
- [NEHotspotEAPSettings.TTLSInnerAuthenticationType](networkextension/nehotspoteapsettings/ttlsinnerauthenticationtype-swift.enum.md)
