How to get a SecIdentityRef from a SecCertificateRef and a SecKeyRef
问题 Here's what I've already tried: First idea was, just put both into an array, use that array with kSecUseItemList , so keychain calls will operate only on the items in this array, not on real keychains and then get the identity like this: NSDictionary * searchQuery = @{ (__bridge id)kSecClass:(__bridge id)kSecClassIdentity, (__bridge id)kSecUseItemList:@[(__bridge id)key, (__bridge id)cert], (__bridge id)kSecReturnRef:@YES }; CFTypeRef foundItem = NULL; OSStatus copyStatus =