Instance Method

setTrustedServerCertificates:

Sets trusted EAP server certificates for an enterprise Wi-Fi or Hotspot 2.0 network.

Declaration

- (BOOL)setTrustedServerCertificates:(NSArray *)certificates;

Parameters

certificates

An array of SecCertificateRef objects. The EAP peer uses these certificates to evaluate the trust of the server certificate chain.

Return Value

Returns NO if any element in the array is not an object of type SecCertificateRef or if the OS fails to find a persistent reference for each element from the application's keychain; else return YES.

Discussion

Your app must store the certificates in keychain access group $(TeamIdentifierPrefix)com.apple.networkextensionsharing. The OS uses SecItemCopyMatching to obtain a persistent reference to each certificate from the application’s keychain and uses it during EAP authentication.

The number of elements in the certificate array may not be more than 10.

See Also

Setting Keychain-based EAP Properties

- setIdentity:

Sets the client identity for EAP authentication.