I created public/private key with SecKeyCreateRandomKey.
I then use openssl to create csr and a client certificate using the private key. The private key and certificate exist together in the keychain.
I then query for the certificate with SecItemCopyMatching and use that certificate to create the identity:
SecIdentityCreateWithCertificate(
nullptr,
client_cert,
&identity)
I get error result of errSecItemNotFound.
Any idea what is wrong here ?
I'm running on macOS version 11.6
Thanks, Tal