Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save fcaldarelli/15cccb3f2566ea33b422769016d3c91a to your computer and use it in GitHub Desktop.
Save fcaldarelli/15cccb3f2566ea33b422769016d3c91a to your computer and use it in GitHub Desktop.
AFNetworking image downloader self-signed ssl
AFHTTPSessionManager *sessionManager = [AFImageDownloader defaultInstance].sessionManager;
sessionManager.securityPolicy.allowInvalidCertificates = YES;
sessionManager.securityPolicy.validatesDomainName = NO;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment