Problems with SSL Pinning and AFNetworking 2.5.0 (NSURLErrorDomain error -1012.)

后端 未结 9 2043
爱一瞬间的悲伤
爱一瞬间的悲伤 2020-12-07 20:45

We’ve been having a hard time securing our app’s network connections with SSL using AFNetworking 2.5.0.

We use a self-signed certificate authority and implemented a

9条回答
  •  一向
    一向 (楼主)
    2020-12-07 21:19

    I tried all of these but nothing helped then I searched for this line

    'NSLog(@"In order to validate a domain name for self signed certificates, you MUST use pinning.");'

    and below this line I changed

    'return NO;'
    to

    'return YES;'

    and it did the magic.

    Thanks.

提交回复
热议问题