The certificate for this server is invalid

前端 未结 9 1842
花落未央
花落未央 2021-02-13 18:04

I know that if I use following nsurlconnectiondelegate it will be fixed

– connection:willSendRequestForAuthenticationChallenge: – connection:canAuthenti

9条回答
  •  滥情空心
    2021-02-13 18:36

    That is a certificate error. you need to change your settings so that your program/os ignores the certificate, or add the url/certificate to a trusted list.

    Sorry that is authentication, certificate is authentication. I took a look, and I found this article.

    Not sure if it will resolve your issue, but it basically states, that they don't cover the case of connecting to a site with how a certificate in the documentation.

    http://www.cocoanetics.com/2009/11/ignoring-certificate-errors-on-nsurlrequest/

提交回复
热议问题