allow invalid certificates with AFNetworking

前端 未结 2 1785
逝去的感伤
逝去的感伤 2021-02-14 22:48

I have been using following code

AFHTTPRequestOperation *operation = [[AFHTTPRequestOperation alloc]initWithRequest:request];
operation.allowsInvalidSSLCertifica         


        
2条回答
  •  感情败类
    2021-02-14 23:44

    As far as I know. It's an iOS 7 issue. Apple does not allow communication with self signed certificate websites. Unless you send the certificate to device and add as a trusted certificate list.

    Supporting comment on other question: https://stackoverflow.com/a/20251011/753603

    Couldn't find piece of documented text by Apple.

提交回复
热议问题