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
If you just want to silence the warning without having a client certificate, the policy should look like this:
AFSecurityPolicy* policy = [AFSecurityPolicy policyWithPinningMode:AFSSLPinningModeNone]; [policy setValidatesDomainName:YES]; [policy setAllowInvalidCertificates:NO];