AFN 请求 https get
AFN 请求 https get
在pch文件
#define AFNETWORKING_ALLOW_INVALID_SSL_CERTIFICATES
在请求数据那里
AFSecurityPolicy *securityPolicy = [AFSecurityPolicy defaultPolicy];
securityPolicy.allowInvalidCertificates = YES;
securityPolicy.allowInvalidCertificates = YES;
AFHTTPRequestOperationManager *manager = [AFHTTPRequestOperationManager manager];
manager.securityPolicy = securityPolicy; //https