Creating a SecCertificateRef for NSURLConnection Authentication Challenge

后端 未结 1 1860
我寻月下人不归
我寻月下人不归 2021-01-12 16:22

I am receiving an authentication challenge from a server my app is trying to connect to, so I have implemented the connection:didReceiveAuthenticationChallenge:

1条回答
  •  有刺的猬
    2021-01-12 16:57

    I finally found the answer. I was supposed to use SecIdentityCopyCertificate(identity, &certificateRef); instead of SecCertificateCreateWithData(nil, inPKCS12Data); to create my certificate.

    0 讨论(0)
提交回复
热议问题