美文网首页iOS备忘录iOS开发
In order to validate a domain na

In order to validate a domain na

作者: ocarol | 来源:发表于2016-04-19 17:29 被阅读1020次

    解决办法:

    since you have manager initialized, you can do:

    manager.securityPolicy.allowInvalidCertificates = YES;
    manager.securityPolicy.validatesDomainName = NO;
    

    and it will work for a self-signed certificate

    链接地址:

    http://stackoverflow.com/questions/27808249/problems-with-ssl-pinning-and-afnetworking-2-5-0-nsurlerrordomain-error-1012

    相关文章

      网友评论

        本文标题:In order to validate a domain na

        本文链接:https://www.haomeiwen.com/subject/dqhzlttx.html