1.ATS开关开启
2.
manager.securityPolicy.allowInvalidCertificates = YES;
manager.securityPolicy.validatesDomainName = NO;
若是 AFHTTPRequestOperation 调用方式,则:
[operation.securityPolicy setAllowInvalidCertificates:YES];
operation.securityPolicy.validatesDomainName = NO;