Use a self-signed ssl certificate in an iphone app

后端 未结 1 1209
醉话见心
醉话见心 2020-12-12 11:13

I apologize in advance for the long-winded question. I\'m having trouble with a self-signed SSL cert and I want to document everything I\'ve tried so far.

I\'m work

相关标签:
1条回答
  • 2020-12-12 11:50

    OK, I figured it out. I was sort of barking up the wrong tree.

    The most important information I found was in Apple's documentation for Certificate, Key, and Trust Services Programming Guide, in particular, the "Tasks for iOS" page. That detailed how to extract the security identity from the .p12 file and how to add a trust exception.

    The last piece of the puzzle was in ASIHTTPRequest's documentation on Client Certificate Support. By using the identity I extracted directly from the p12 file, I was able to pass that on to the request and get everything authenticated properly.

    I hope this helps anyone else that has to implement a similar feature.

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