解决办法:
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
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