Hi,
I am creating a simple command line tool that opens a connection to a URL using NWConnection API. The URL does client authentication and I need to present the client certificate to the server.
I have setup a protocol challenge block using sec_protocol_options_set_challenge_block and I present the sec_identity_t to the sec_protocol_verify_complete_t. However I always get a prompt that my application wants to access the private key in the keychain.
I have given all applications access to this item but I am still getting this prompt. The prompt handles specifically after I have called the sec_protocol_verify_complete_t.
var identity: SecIdentity?
let status = SecIdentityCreateWithCertificate(nil, cert!, &identity)
if (status == errSecSuccess) {
print("got the identity")
let secIdentity = sec_identity_create(identity!)
challengeComplete(secIdentity) <--prompt happens after this
Is this some bug or there is a way to disable the prompt?
Thanks