How to use NSURLConnection to connect with SSL for an untrusted cert?

后端 未结 13 1600
盖世英雄少女心
盖世英雄少女心 2020-11-22 01:29

I have the following simple code to connect to a SSL webpage

NSMutableURLRequest *urlRequest=[NSMutableURLRequest requestWithURL:url];
[ NSURLConnection send         


        
13条回答
  •  失恋的感觉
    2020-11-22 01:50

    I posted some gist code (based on someone else's work which I note) that lets you properly authenticate against a self generated certificate (and how to get a free certificate - see comments bottom of Cocoanetics)

    My code is here github

提交回复
热议问题