How to create a SecIdentityRef if you have a SecCertificateRef and Private Key in iOS?
I have a X509 certificate which is passed from server and an associated private key, but now I am struggling to establish trust in NSURLCredentials
.
A similar question was asked here How to establish a SecIdentityRef in an iPhone keychain ? (Without a .p12)
As mentioned IMPORTANT in above post, i did create SecCertificateRef using SecCertificateCreateWithData
first and then added into the keychain using SecItemAdd
but don't know what to do now to generate SecIdentityRef.
Many Thanks,
Manish
P.S. - I don't have enough ref points to comment on a post so asking a new question.
credentialWithIdentity:certificates:persistence
but im still getting SSL errors – Brutalize