<!--
{
  "availability" : [
    "macCatalyst: -",
    "macOS: 10.7.0 - 10.9.0"
  ],
  "documentType" : "symbol",
  "framework" : "CoreWLAN",
  "identifier" : "/documentation/CoreWLAN/CWKeychainCopyEAPIdentity",
  "metadataVersion" : "0.1.0",
  "role" : "Function",
  "symbol" : {
    "kind" : "Function",
    "modules" : [
      "Core WLAN"
    ],
    "preciseIdentifier" : "c:@F@CWKeychainCopyEAPIdentity"
  },
  "title" : "CWKeychainCopyEAPIdentity"
}
-->

# CWKeychainCopyEAPIdentity

Finds and returns the identity stored for corresponding network with the specified SSID.

```
OSStatus CWKeychainCopyEAPIdentity(CFDataRef ssidData, SecIdentityRef*identity);
```

## Parameters

`identity`

A SecIdentityRef object passed by reference, which contains the certificate to use for the specified SSID.

## Return Value

An OSStatus error code which will indicate whether or not a failure occurred during execution. *errSecSuccess* indicates no error occurred.

## Discussion

If there is no matching keychain entry for the specified SSID, this method will return *NO*.

---

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)